]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-imap: imap_bodystructure_parse*() - Reset parts.data on failure
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 22 Feb 2022 16:44:02 +0000 (17:44 +0100)
committerMarco Bettini <marco.bettini@open-xchange.com>
Wed, 6 Jul 2022 13:41:47 +0000 (13:41 +0000)
commit73962c1f59e5ec128ea5224b5ffefa0ebbac05e9
tree16fe5e1e9de2f59b7d8da671ed0d7fa8e4712ebc
parent300b5c257b0ae197dbd6d64bac9f376c8db2f1f7
lib-imap: imap_bodystructure_parse*() - Reset parts.data on failure

Having the data filled only to some message_parts can confuse the callers,
thinking that all the parts were successfully filled.

Fixes:
Panic: file message-part-data.c: line 579 (message_part_is_attachment): assertion failed: (data != NULL)
src/lib-imap/imap-bodystructure.c
src/lib-imap/test-imap-bodystructure.c