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

cras at dovecot.org cras at dovecot.org
Thu May 18 12:50:27 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	cmd-append.c 
Log Message:
If connection closes while appending, we crashed in some situations.



Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.80
retrieving revision 1.80.2.1
diff -u -d -r1.80 -r1.80.2.1
--- cmd-append.c	12 Apr 2006 16:04:29 -0000	1.80
+++ cmd-append.c	18 May 2006 09:50:25 -0000	1.80.2.1
@@ -143,7 +143,8 @@
 	(void)i_stream_get_data(ctx->input, &size);
 	i_stream_skip(ctx->input, size);
 
-	if (ctx->input->v_offset == ctx->msg_size || ctx->input->closed) {
+	if (ctx->input->v_offset == ctx->msg_size ||
+	    cmd->client->input->closed) {
 		cmd_append_finish(ctx);
 		return TRUE;
 	}



More information about the dovecot-cvs mailing list