dovecot-2.2: imap: Don't assert-crash on FETCH BODY[MIME] (retur...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Oct 16 20:17:25 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/73216464c8e1
changeset: 16857:73216464c8e1
user: Timo Sirainen <tss at iki.fi>
date: Wed Oct 16 20:16:45 2013 +0300
description:
imap: Don't assert-crash on FETCH BODY[MIME] (return BAD instead)
diffstat:
src/lib-imap-storage/imap-msgpart.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r b9498573f0d0 -r 73216464c8e1 src/lib-imap-storage/imap-msgpart.c
--- a/src/lib-imap-storage/imap-msgpart.c Sat Oct 12 11:11:04 2013 +0300
+++ b/src/lib-imap-storage/imap-msgpart.c Wed Oct 16 20:16:45 2013 +0300
@@ -254,6 +254,8 @@
section = t_str_ucase(section);
if (strcmp(section, "MIME") == 0) {
+ if (msgpart->section_number[0] == '\0')
+ return -1;
msgpart->fetch_type = FETCH_MIME;
msgpart->wanted_fields |= MAIL_FETCH_STREAM_BODY;
} else if (strcmp(section, "TEXT") == 0) {
More information about the dovecot-cvs
mailing list