changeset 9390:3132464fbe9c HEAD

quota: Don't crash with non-Maildir++ quota backend. Patch by Brandon Davidson.
author Timo Sirainen <tss@iki.fi>
date Mon, 28 Sep 2009 14:24:14 -0400
parents 26ca4ff5d269
children d0e7d95ca46a
files src/plugins/quota/quota.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;