]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Set index error on transaction commit() callback
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 25 Dec 2017 16:18:14 +0000 (18:18 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 15 Jan 2018 09:18:25 +0000 (11:18 +0200)
commit572102f8b6737c073a82a671d99484fdddb23279
tree030994157658527b02f3c794e01615ce63612b28
parent98732c035e42d48a1de060a5f12f7edc5f3c6fe3
lib-storage: Set index error on transaction commit() callback

The commit callback is setting errors to storage. However, it's being
called from mail_index_transaction_commit() whose callers are expecting
the error to be in index. If that index error was attempted to be used,
it could have been wrong or NULL. Fix this by setting the same storage
error also to the index.
src/lib-storage/index/index-transaction.c