[dovecot-cvs] dovecot/src/imap cmd-append.c,1.79,1.80

cras at dovecot.org cras at dovecot.org
Wed Apr 12 19:04:32 EEST 2006


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

Modified Files:
	cmd-append.c 
Log Message:
Don't crash if client disconnects while appending message.



Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- cmd-append.c	6 Mar 2006 20:34:43 -0000	1.79
+++ cmd-append.c	12 Apr 2006 16:04:29 -0000	1.80
@@ -40,6 +40,9 @@
 	case -1:
 		/* disconnected */
 		cmd_append_finish(cmd->context);
+		/* Reset command so that client_destroy() doesn't try to call
+		   cmd_append_continue_message() anymore. */
+		_client_reset_command(client);
 		client_destroy(client, "Disconnected in APPEND");
 		return;
 	case -2:



More information about the dovecot-cvs mailing list