dovecot-1.2: quota: If quota backend's init() function fails, di...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 19 02:01:07 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/da848018d760
changeset: 8299:da848018d760
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 19 02:01:03 2008 +0300
description:
quota: If quota backend's init() function fails, die without crashing.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/quota/quota.c |    2 +-

diffs (12 lines):

diff -r e88c6b43665a -r da848018d760 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Sat Oct 18 23:54:50 2008 +0300
+++ b/src/plugins/quota/quota.c	Sun Oct 19 02:01:03 2008 +0300
@@ -152,7 +152,7 @@ quota_root_init(struct quota_root_settin
 
 	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++) {


More information about the dovecot-cvs mailing list