Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9151:31fe9a8740c3 HEAD
imap_parser_read_args() didn't correctly return how many parameters were read.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 22 Jun 2009 00:11:43 -0400 |
parents | c7402e49132a |
children | ef644130d6c2 |
files | src/lib-imap/imap-parser.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-imap/imap-parser.c Mon Jun 22 00:10:00 2009 -0400 +++ b/src/lib-imap/imap-parser.c Mon Jun 22 00:11:43 2009 -0400 @@ -540,6 +540,7 @@ const struct imap_arg **args_r) { struct imap_arg *arg; + int ret = array_count(&parser->root_list); parser->line_size += parser->cur_pos; i_stream_skip(parser->input, parser->cur_pos); @@ -560,7 +561,7 @@ arg->type = IMAP_ARG_EOL; *args_r = array_get(&parser->root_list, &count); - return count; + return ret; } int imap_parser_read_args(struct imap_parser *parser, unsigned int count,