dovecot-2.2: lib-imap: imap_parser_read_args() shouldn't append ...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 6 19:51:28 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/67ec8bb5c27a
changeset: 16335:67ec8bb5c27a
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 06 19:48:32 2013 +0300
description:
lib-imap: imap_parser_read_args() shouldn't append multiple EOLs when calling multiple times.

diffstat:

 src/lib-imap/imap-parser.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (16 lines):

diff -r a45bfb4c7d66 -r 67ec8bb5c27a src/lib-imap/imap-parser.c
--- a/src/lib-imap/imap-parser.c	Mon May 06 18:35:36 2013 +0300
+++ b/src/lib-imap/imap-parser.c	Mon May 06 19:48:32 2013 +0300
@@ -711,11 +711,7 @@
 
 	arg = array_append_space(&parser->root_list);
 	arg->type = IMAP_ARG_EOL;
-
-	if (!parser->eol)
-		parser->args_added_extra_eol = TRUE;
-	else
-		i_assert(!parser->literal_size_return);
+	parser->args_added_extra_eol = TRUE;
 
 	*args_r = array_get(&parser->root_list, &count);
 	return ret;


More information about the dovecot-cvs mailing list