From: Timo Sirainen Date: Thu, 1 Jul 2010 19:59:33 +0000 (+0100) Subject: dsync: Fixed assert-crashing on exporting a "deleted mailbox" record to proxy. X-Git-Tag: 2.0.rc1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a941956fe1feb928a52208fdb62f8e31cd17ba24;p=thirdparty%2Fdovecot%2Fcore.git dsync: Fixed assert-crashing on exporting a "deleted mailbox" record to proxy. --HG-- branch : HEAD --- diff --git a/src/dsync/dsync-proxy.c b/src/dsync/dsync-proxy.c index 126fb14c83..edf089f866 100644 --- a/src/dsync/dsync-proxy.c +++ b/src/dsync/dsync-proxy.c @@ -168,7 +168,8 @@ void dsync_proxy_mailbox_export(string_t *str, i_assert(box->uid_validity == 0); return; } - i_assert(box->uid_validity != 0); + i_assert(box->uid_validity != 0 || + (box->flags & DSYNC_MAILBOX_FLAG_DELETED_MAILBOX) != 0); str_append_c(str, '\t'); dsync_proxy_mailbox_guid_export(str, &box->mailbox_guid);