]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fixed assert-crashing on exporting a "deleted mailbox" record to proxy.
authorTimo Sirainen <tss@iki.fi>
Thu, 1 Jul 2010 19:59:33 +0000 (20:59 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 1 Jul 2010 19:59:33 +0000 (20:59 +0100)
--HG--
branch : HEAD

src/dsync/dsync-proxy.c

index 126fb14c83ea681fbf18f9f8932ea52d2cdff55e..edf089f866104530dfd744c136bc35f8e81f567e 100644 (file)
@@ -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);