Skip to content

Commit

Permalink
imapc: Fix assert-crash after detecting that multiple expunged mail r…
Browse files Browse the repository at this point in the history
…eappear

The first imapc_mailbox_set_corrupted() call started a reconnect. The second
call crashed with:

Panic: file imapc-client.c: line 414 (imapc_client_mailbox_reconnect): assertion failed: (!box->reconnecting)
  • Loading branch information
sirainen authored and cmouse committed Feb 28, 2018
1 parent bc2c2ef commit 24cc64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-storage/index/imapc/imapc-sync.c
Expand Up @@ -346,7 +346,7 @@ imapc_initial_sync_check(struct imapc_sync_context *ctx, bool nooped)
imapc_mailbox_set_corrupted(ctx->mbox,
"Expunged message uid=%u reappeared", ruid);
ctx->failed = TRUE;
rseq++;
return;
}
}
}
Expand Down

0 comments on commit 24cc64c

Please sign in to comment.