dovecot-2.0: dsync: Fixed a potential assert crash when saving m...

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 9 20:38:46 EET 2012


details:   http://hg.dovecot.org/dovecot-2.0/rev/8228f09ab0c2
changeset: 13049:8228f09ab0c2
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 09 20:38:42 2012 +0200
description:
dsync: Fixed a potential assert crash when saving mails.

diffstat:

 src/dsync/dsync-worker-local.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 425b62b59405 -r 8228f09ab0c2 src/dsync/dsync-worker-local.c
--- a/src/dsync/dsync-worker-local.c	Thu Feb 09 20:37:24 2012 +0200
+++ b/src/dsync/dsync-worker-local.c	Thu Feb 09 20:38:42 2012 +0200
@@ -1682,7 +1682,7 @@
 	dsync_worker_save_callback_t *callback;
 	ssize_t ret;
 
-	while ((ret = i_stream_read(worker->save_input)) > 0) {
+	while ((ret = i_stream_read(worker->save_input)) > 0 || ret == -2) {
 		if (mailbox_save_continue(worker->save_ctx) < 0)
 			break;
 	}


More information about the dovecot-cvs mailing list