[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
    
        - Previous message: [dovecot-cvs] dovecot/src/imap cmd-fetch.c, 1.23,
	1.24 imap-fetch-body.c, 1.12, 1.13 imap-fetch.c, 1.26,
	1.27 imap-fetch.h, 1.9, 1.10
 
        - Next message: [dovecot-cvs] dovecot/src/auth mech-cram-md5.c,1.10,1.11
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
    
  
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)) {
    
    
        
	- Previous message: [dovecot-cvs] dovecot/src/imap cmd-fetch.c, 1.23,
	1.24 imap-fetch-body.c, 1.12, 1.13 imap-fetch.c, 1.26,
	1.27 imap-fetch.h, 1.9, 1.10
 
	- Next message: [dovecot-cvs] dovecot/src/auth mech-cram-md5.c,1.10,1.11
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
More information about the dovecot-cvs
mailing list