]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: When save is aborted, close dest_mail without crashing
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 28 Apr 2017 11:35:36 +0000 (14:35 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 28 Apr 2017 11:35:36 +0000 (14:35 +0300)
commitcca398c2ed3200f826220a62ce2a609509823c52
treec3eea72516137ec375049061357cec50b793bb3c
parentf776b9a125c59a96de6807e9558942cf7b7ab079
lib-storage: When save is aborted, close dest_mail without crashing

Fixes:
Panic: file mail-index-transaction-update.c: line 1023 (mail_index_update_ext): assertion failed: (seq > 0 && (seq <= mail_index_view_get_messages_count(t->view) || seq <= t->last_new_seq))

Because cache was still attempted to be updated, but the mail was already
expunged from index.
src/lib-storage/index/index-storage.c