From: Timo Sirainen Date: Thu, 31 Jan 2013 16:17:10 +0000 (+0200) Subject: iostream-rawlog: Ignore 0 byte writes instead of assert-crashing. X-Git-Tag: 2.1.15~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38780588be700298377ed1102a07676312344cff;p=thirdparty%2Fdovecot%2Fcore.git iostream-rawlog: Ignore 0 byte writes instead of assert-crashing. --- diff --git a/src/lib/iostream-rawlog.c b/src/lib/iostream-rawlog.c index 29b61448d6..5b367a00d6 100644 --- a/src/lib/iostream-rawlog.c +++ b/src/lib/iostream-rawlog.c @@ -44,7 +44,8 @@ void iostream_rawlog_write(struct rawlog_iostream *rstream, { size_t i, start; - i_assert(size > 0); + if (size == 0) + return; io_loop_time_refresh(); if (rstream->write_timestamp)