dovecot-2.2: iostream-rawlog: Ignore 0 byte writes instead of as...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 16 18:57:45 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/f35a8649634c
changeset: 15798:f35a8649634c
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 31 18:17:10 2013 +0200
description:
iostream-rawlog: Ignore 0 byte writes instead of assert-crashing.

diffstat:

 src/lib/iostream-rawlog.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 5751963a3be8 -r f35a8649634c src/lib/iostream-rawlog.c
--- a/src/lib/iostream-rawlog.c	Thu Jan 31 00:27:17 2013 +0200
+++ b/src/lib/iostream-rawlog.c	Thu Jan 31 18:17:10 2013 +0200
@@ -44,7 +44,8 @@
 {
 	size_t i, start;
 
-	i_assert(size > 0);
+	if (size == 0)
+		return;
 
 	io_loop_time_refresh();
 	if (rstream->write_timestamp)


More information about the dovecot-cvs mailing list