]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
virtual: Fix keywords handling
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 28 Jun 2017 10:45:19 +0000 (13:45 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 18 Jul 2017 10:42:19 +0000 (13:42 +0300)
commit792262268f0c535f866d26039982c5e549e66337
treeb77292620d4f44216da736c3e9ad15e5c145c6f8
parentdc672efe39039765f383c5d3043f18d595dceaac
virtual: Fix keywords handling

Keywords are per-mail object, and should be treated as one. The old
code left pointer to keywords dandling which lead into double-free.
Now the ctx->data is treated in similar way as other backends.

Fixes Panic: file mail-index.c: line 417 (mail_index_keywords_unref): assertion failed: (keywords->refcount > 0)
Fixes Panic: file mail-storage.c: line 2311 (mailbox_save_context_reset): assertion failed: (!ctx->unfinished)
src/plugins/virtual/virtual-save.c