]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: If quota backend's init() function fails, die without crashing.
authorTimo Sirainen <tss@iki.fi>
Sat, 18 Oct 2008 23:01:03 +0000 (02:01 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 18 Oct 2008 23:01:03 +0000 (02:01 +0300)
--HG--
branch : HEAD

src/plugins/quota/quota.c

index ba5e121de9e67f7a4a8de1af9601fb5d84149768..4ce1687e242239fe97e8c1cdb0d18d45c380a66a 100644 (file)
@@ -152,7 +152,7 @@ quota_root_init(struct quota_root_settings *root_set, struct quota *quota)
 
        if (root->backend.v.init != NULL) {
                if (root->backend.v.init(root, root_set->args) < 0)
-                       return NULL;
+                       i_fatal("Quota root %s init() failed", root_set->name);
        } else if (root_set->args != NULL) {
                tmp = t_strsplit_spaces(root_set->args, " ");
                for (; *tmp != NULL; tmp++) {