From: Timo Sirainen Date: Sat, 18 Oct 2008 23:01:03 +0000 (+0300) Subject: quota: If quota backend's init() function fails, die without crashing. X-Git-Tag: 1.2.alpha3~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00589bcc8452de52d8a4f753be402487eb83ca41;p=thirdparty%2Fdovecot%2Fcore.git quota: If quota backend's init() function fails, die without crashing. --HG-- branch : HEAD --- diff --git a/src/plugins/quota/quota.c b/src/plugins/quota/quota.c index ba5e121de9..4ce1687e24 100644 --- a/src/plugins/quota/quota.c +++ b/src/plugins/quota/quota.c @@ -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++) {