]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mailbox_get_guid() crashed if storage didn't support GUIDs.
authorTimo Sirainen <tss@iki.fi>
Fri, 15 Oct 2010 23:30:50 +0000 (00:30 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 15 Oct 2010 23:30:50 +0000 (00:30 +0100)
src/lib-storage/mail-storage.c

index 957e68c2cd449c36440e994bfc2528a406a62d86..7e5afa510e252a3688fec2aa5eff6dd561e4d01f 100644 (file)
@@ -892,6 +892,7 @@ int mailbox_get_guid(struct mailbox *box, uint8_t guid[MAIL_GUID_128_SIZE])
        if (box->v.get_guid == NULL) {
                mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
                                       "Storage doesn't support mailbox GUIDs");
+               return -1;
        }
        if (!box->opened) {
                if (mailbox_open(box) < 0)