]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-acl: If ACLs are disabled, don't give errors at logout.
authorTimo Sirainen <tss@iki.fi>
Wed, 19 Nov 2008 14:11:01 +0000 (16:11 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 19 Nov 2008 14:11:01 +0000 (16:11 +0200)
--HG--
branch : HEAD

src/plugins/imap-acl/imap-acl-plugin.c

index 3c4ba38ee8b8b8582a7ae559a02774ebe4724572..b418434dd9f63f8e0b447aed30fefaf4ccf6a36e 100644 (file)
@@ -485,6 +485,9 @@ void imap_acl_plugin_init(void)
 
 void imap_acl_plugin_deinit(void)
 {
+       if (getenv("ACL") == NULL)
+               return;
+
        command_unregister("GETACL");
        command_unregister("MYRIGHTS");
        command_unregister("SETACL");