# HG changeset patch # User Timo Sirainen # Date 1224370863 -10800 # Node ID da848018d7600f3b135872efdd6e58761734f256 # Parent e88c6b43665a07ad65728bec7baebdc700fe2a24 quota: If quota backend's init() function fails, die without crashing. 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 @@ 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++) {