Skip to content

Commit

Permalink
dsync: Fix panic if syncing fails during attribute iteration
Browse files Browse the repository at this point in the history
Fixes:
Panic: file dict.c: line 104 (dict_deinit): assertion failed: (dict->iter_count == 0)
  • Loading branch information
sirainen authored and GitLab committed Jun 14, 2017
1 parent 3da9825 commit df74814
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/doveadm/dsync/dsync-mailbox-export.c
Expand Up @@ -928,6 +928,8 @@ int dsync_mailbox_export_deinit(struct dsync_mailbox_exporter **_exporter,

*_exporter = NULL;

if (exporter->attr_iter != NULL)
(void)mailbox_attribute_iter_deinit(&exporter->attr_iter);
dsync_mailbox_export_body_search_deinit(exporter);
(void)mailbox_transaction_commit(&exporter->trans);
if (exporter->wanted_headers != NULL)
Expand Down

0 comments on commit df74814

Please sign in to comment.