dovecot-2.2: imapc: Don't crash if server sends EXISTS while mai...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 6 18:29:11 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/b41828d3f663
changeset: 16716:b41828d3f663
user: Timo Sirainen <tss at iki.fi>
date: Fri Sep 06 18:28:59 2013 +0300
description:
imapc: Don't crash if server sends EXISTS while mailbox isn't selected.
diffstat:
src/lib-storage/index/imapc/imapc-mailbox.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 07a8718ef3a8 -r b41828d3f663 src/lib-storage/index/imapc/imapc-mailbox.c
--- a/src/lib-storage/index/imapc/imapc-mailbox.c Fri Sep 06 18:26:48 2013 +0300
+++ b/src/lib-storage/index/imapc/imapc-mailbox.c Fri Sep 06 18:28:59 2013 +0300
@@ -127,13 +127,14 @@
imapc_untagged_exists(const struct imapc_untagged_reply *reply,
struct imapc_mailbox *mbox)
{
- struct mail_index_view *view = mbox->delayed_sync_view;
+ struct mail_index_view *view;
uint32_t exists_count = reply->num;
const struct mail_index_header *hdr;
if (mbox == NULL)
return;
+ view = mbox->delayed_sync_view;
if (view == NULL)
view = imapc_mailbox_get_sync_view(mbox);
More information about the dovecot-cvs
mailing list