Mercurial > dovecot > core-2.2
changeset 9940:739d8d99bafe 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 | 9b4bb1a7d789 |
children | 413f5cf35694 |
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 @@ -507,8 +507,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;