[dovecot-cvs] dovecot/src/imap cmd-append.c,1.80.2.9,1.80.2.10

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


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

Modified Files:
      Tag: branch_1_0
	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.80.2.9
retrieving revision 1.80.2.10
diff -u -d -r1.80.2.9 -r1.80.2.10
--- cmd-append.c	13 Mar 2007 15:42:20 -0000	1.80.2.9
+++ cmd-append.c	13 Mar 2007 15:55:11 -0000	1.80.2.10
@@ -211,7 +211,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