# HG changeset patch # User Timo Sirainen # Date 1254162254 14400 # Node ID 3132464fbe9c48fff1df4289f894e77e2101dd46 # Parent 26ca4ff5d2697bba2cad2ba43362304b2dd66d8b quota: Don't crash with non-Maildir++ quota backend. Patch by Brandon Davidson. diff -r 26ca4ff5d269 -r 3132464fbe9c src/plugins/quota/quota.c --- a/src/plugins/quota/quota.c Mon Sep 28 11:11:54 2009 -0400 +++ b/src/plugins/quota/quota.c Mon Sep 28 14:24:14 2009 -0400 @@ -444,8 +444,10 @@ 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;