Mercurial > dovecot > core-2.2
changeset 16335:67ec8bb5c27a
lib-imap: imap_parser_read_args() shouldn't append multiple EOLs when calling multiple times.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 06 May 2013 19:48:32 +0300 |
parents | a45bfb4c7d66 |
children | ea0390e1789f |
files | src/lib-imap/imap-parser.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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;