]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: Don't crash with non-Maildir++ quota backend.
authorTimo Sirainen <tss@iki.fi>
Mon, 28 Sep 2009 18:24:14 +0000 (14:24 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 28 Sep 2009 18:24:14 +0000 (14:24 -0400)
Patch by Brandon Davidson.

--HG--
branch : HEAD

src/plugins/quota/quota.c

index 2db8f437e992a4c42233ba99ad4dc1d820dcb8e1..40675572ef7c3b450b1589da6848d9fbc9042938 100644 (file)
@@ -507,8 +507,10 @@ static int quota_root_get_rule_limits(struct quota_root *root,
        bool found;
 
        if (!root->set->force_default_rule) {
-               if (root->backend.v.init_limits(root) < 0)
-                       return -1;
+               if (root->backend.v.init_limits != NULL) {
+                       if (root->backend.v.init_limits(root) < 0)
+                               return -1;
+               }
        }
 
        bytes_limit = root->bytes_limit;