summaryrefslogtreecommitdiff
path: root/mail/teapop-devel/files/patch-ac
blob: ac6e0e40c71d324d4e4525b3bb18f49de0f92331 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- teapop/pop_lock.c.orig	Sun Mar 31 09:12:59 2002
+++ teapop/pop_lock.c	Sun Mar 31 09:14:38 2002
@@ -239,6 +239,10 @@
 {
 	struct flock lock_data;
 
+	/* xpinfo is unset if no mailbox is opened */
+	if (xpinfo == NULL)
+		return;
+
 	/* Maildir OR mbox */
 	if (xpinfo->mboxtype == 1 || xpinfo->locktype & LOCK_DOTLOCK) {
 		(void)unlink(xpinfo->dotlock);