dovecot-2.2: imap: Added assert+comment to give easier to unders...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 24 15:00:20 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/b0682d64a990
changeset: 15911:b0682d64a990
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 24 14:59:54 2013 +0200
description:
imap: Added assert+comment to give easier to understand error.
diffstat:
src/imap/cmd-append.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r b787cf83bca8 -r b0682d64a990 src/imap/cmd-append.c
--- a/src/imap/cmd-append.c Sun Feb 24 14:58:32 2013 +0200
+++ b/src/imap/cmd-append.c Sun Feb 24 14:59:54 2013 +0200
@@ -230,6 +230,9 @@
client_send_storage_error(cmd, ctx->storage);
ret = -1;
} else {
+ /* all the input must be consumed, so istream-chain's read()
+ unreferences the stream and we can free its parent mail */
+ i_assert(!i_stream_have_bytes_left(mpresult.input));
ret = 0;
}
imap_msgpart_url_free(&mpurl);
More information about the dovecot-cvs
mailing list