Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8299:da848018d760 HEAD
quota: If quota backend's init() function fails, die without crashing.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 19 Oct 2008 02:01:03 +0300 |
parents | e88c6b43665a |
children | 9d963e3bbe65 |
files | src/plugins/quota/quota.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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++) {