]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Recent change broke deleting mailboxes with LAYOUT=index
authorTimo Sirainen <tss@iki.fi>
Mon, 27 Oct 2014 15:05:52 +0000 (17:05 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 27 Oct 2014 15:05:52 +0000 (17:05 +0200)
src/lib-storage/list/mailbox-list-index-backend.c

index d0ef630398fa1af93e2e07283714cb49b88b8519..97bebd94acf3e5ac6343794168042adb6ffce4f6 100644 (file)
@@ -496,7 +496,8 @@ index_list_delete_entry(struct index_mailbox_list *list, const char *name,
        struct mailbox_list_index_sync_context *sync_ctx;
        int ret;
 
-       if (strcmp(name, list->create_mailbox_name) == 0) {
+       if (list->create_mailbox_name != NULL &&
+           strcmp(name, list->create_mailbox_name) == 0) {
                /* we're rollbacking a failed create. if the name exists in the
                   list, it was done by somebody else so we don't want to
                   remove it. */