]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail-crypt: Fix crash when plugin is already initialized, but not used for another...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 31 Mar 2020 10:49:28 +0000 (13:49 +0300)
committerMarco Bettini <marco.bettini@open-xchange.com>
Thu, 17 Feb 2022 13:59:21 +0000 (14:59 +0100)
Fixes:
Panic: Module context mail_crypt_user_module missing

src/plugins/mail-crypt/mail-crypt-plugin.c

index 9ece7eae5b3b58891085c58fca62de61c698e895..2eb56ef903cf23ef4a32d7e95a6828381c2d7967 100644 (file)
@@ -345,7 +345,7 @@ static void mail_crypt_mailbox_close(struct mailbox *box)
 {
        struct mail_crypt_mailbox *mbox = MAIL_CRYPT_CONTEXT(box);
        struct mail_crypt_user *muser =
-               MAIL_CRYPT_USER_CONTEXT_REQUIRE(box->storage->user);
+               MAIL_CRYPT_USER_CONTEXT(box->storage->user);
 
        if (mbox->pub_key != NULL)
                dcrypt_key_unref_public(&mbox->pub_key);