dovecot-2.2: mbox: Added extra assert
dovecot at dovecot.org
dovecot at dovecot.org
Tue Oct 29 20:26:43 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/41c844719166
changeset: 16893:41c844719166
user: Timo Sirainen <tss at iki.fi>
date: Tue Oct 29 20:26:33 2013 +0200
description:
mbox: Added extra assert
diffstat:
src/lib-storage/index/mbox/mbox-sync-rewrite.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r c69d919edf63 -r 41c844719166 src/lib-storage/index/mbox/mbox-sync-rewrite.c
--- a/src/lib-storage/index/mbox/mbox-sync-rewrite.c Tue Oct 29 19:42:14 2013 +0200
+++ b/src/lib-storage/index/mbox/mbox-sync-rewrite.c Tue Oct 29 20:26:33 2013 +0200
@@ -19,6 +19,7 @@
struct ostream *output;
off_t ret;
+ i_assert(source > 0 || (dest != 1 && dest != 2));
i_assert(size < OFF_T_MAX);
if (size == 0 || source == dest)
More information about the dovecot-cvs
mailing list