dovecot-2.2: imap: SETMETADATA shouldn't assert-crash when entry...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 19 23:07:03 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/cded53530a9f
changeset: 17075:cded53530a9f
user: Timo Sirainen <tss at iki.fi>
date: Thu Dec 19 23:04:55 2013 +0200
description:
imap: SETMETADATA shouldn't assert-crash when entry name is invalid
diffstat:
src/imap/cmd-setmetadata.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r bd50cc9fa757 -r cded53530a9f src/imap/cmd-setmetadata.c
--- a/src/imap/cmd-setmetadata.c Thu Dec 19 21:37:28 2013 +0200
+++ b/src/imap/cmd-setmetadata.c Thu Dec 19 23:04:55 2013 +0200
@@ -233,7 +233,8 @@
while ((ret = cmd_setmetadata_parse_entryvalue(ctx, &entry, &value)) > 0 &&
entry != NULL) {
- ret = cmd_setmetadata_entry(ctx, entry, value);
+ ret = ctx->failed ? 1 :
+ cmd_setmetadata_entry(ctx, entry, value);
imap_parser_reset(ctx->parser);
if (ret <= 0)
break;
More information about the dovecot-cvs
mailing list