[dovecot-cvs] dovecot/src/imap cmd-append.c,1.94,1.95

tss at dovecot.org tss at dovecot.org
Tue Mar 13 17:55:16 EET 2007


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

Modified Files:
	cmd-append.c 
Log Message:
Logout crashfix in some conditions.



Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- cmd-append.c	11 Mar 2007 17:38:09 -0000	1.94
+++ cmd-append.c	13 Mar 2007 15:55:14 -0000	1.95
@@ -213,7 +213,7 @@
 	/* [<flags>] [<internal date>] <message literal> */
 	ret = imap_parser_read_args(ctx->save_parser, 0,
 				    IMAP_PARSE_FLAG_LITERAL_SIZE, &args);
-	if (ret == -1) {
+	if (ret == -1 || client->output->closed) {
 		if (!ctx->failed)
 			client_send_command_error(cmd, NULL);
 		cmd_append_finish(ctx);



More information about the dovecot-cvs mailing list