[dovecot-cvs] dovecot/src/imap cmd-close.c,1.13,1.14

cras at dovecot.org cras at dovecot.org
Tue Sep 28 16:19:27 EEST 2004


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv3445

Modified Files:
	cmd-close.c 
Log Message:
Don't crash if CLOSEing without open mailbox.



Index: cmd-close.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-close.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- cmd-close.c	20 Jun 2004 03:25:33 -0000	1.13
+++ cmd-close.c	28 Sep 2004 13:19:25 -0000	1.14
@@ -7,11 +7,12 @@
 int cmd_close(struct client *client)
 {
 	struct mailbox *mailbox = client->mailbox;
-	struct mail_storage *storage = mailbox_get_storage(mailbox);
+	struct mail_storage *storage;
 
 	if (!client_verify_open_mailbox(client))
 		return TRUE;
 
+	storage = mailbox_get_storage(mailbox);
 	client->mailbox = NULL;
 
 	if (!mailbox_is_readonly(mailbox)) {



More information about the dovecot-cvs mailing list