dovecot-2.2: iostream-rawlog: Don't assert-crash if trying to wr...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 9 00:31:23 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/482da7a91b1c
changeset: 15391:482da7a91b1c
user: Timo Sirainen <tss at iki.fi>
date: Fri Nov 09 00:31:07 2012 +0200
description:
iostream-rawlog: Don't assert-crash if trying to write 0 bytes.
diffstat:
src/lib/iostream-rawlog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r af331bc452d0 -r 482da7a91b1c src/lib/iostream-rawlog.c
--- a/src/lib/iostream-rawlog.c Tue Nov 06 23:53:11 2012 +0200
+++ b/src/lib/iostream-rawlog.c Fri Nov 09 00:31:07 2012 +0200
@@ -95,7 +95,8 @@
size_t pos;
bool line_ends;
- i_assert(size > 0);
+ if (size == 0)
+ return;
io_loop_time_refresh();
if ((rstream->flags & IOSTREAM_RAWLOG_FLAG_BUFFERED) == 0) {
More information about the dovecot-cvs
mailing list