]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
iostream-rawlog: Ignore 0 byte writes instead of assert-crashing.
authorTimo Sirainen <tss@iki.fi>
Thu, 31 Jan 2013 16:17:10 +0000 (18:17 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 31 Jan 2013 16:17:10 +0000 (18:17 +0200)
src/lib/iostream-rawlog.c

index 29b61448d6cf5dbdb3b30e3b85be0413fb3fc1e9..5b367a00d68ef8b7639b296cefbb93ef4f94b43c 100644 (file)
@@ -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)