[dovecot-cvs] dovecot/src/imap cmd-append.c,1.51,1.52

cras at dovecot.org cras at dovecot.org
Mon Jan 31 20:19:41 EET 2005


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

Modified Files:
	cmd-append.c 
Log Message:
And a non-crashing fix.



Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- cmd-append.c	31 Jan 2005 18:17:25 -0000	1.51
+++ cmd-append.c	31 Jan 2005 18:19:39 -0000	1.52
@@ -301,6 +301,7 @@
 
 	if (ctx->input->v_offset == ctx->msg_size || ctx->input->closed) {
 		/* finished */
+		failed = ctx->input->closed;
 		i_stream_unref(ctx->input);
 		ctx->input = NULL;
 
@@ -315,8 +316,6 @@
 		} else if (mailbox_save_finish(ctx->save_ctx, NULL) < 0) {
 			failed = TRUE;
 			client_send_storage_error(client, ctx->storage);
-		} else {
-			failed = ctx->input->closed;
 		}
 		ctx->save_ctx = NULL;
 



More information about the dovecot-cvs mailing list