From: Timo Sirainen Date: Thu, 12 Jun 2008 10:16:08 +0000 (+0300) Subject: Quota: If quota root has unwanted parameters, log an error and die. X-Git-Tag: 1.2.alpha1~324 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=608aa112aa7d94a1720c909747dcd0b61c079453;p=thirdparty%2Fdovecot%2Fcore.git Quota: If quota root has unwanted parameters, log an error and die. --HG-- branch : HEAD --- diff --git a/src/plugins/quota/quota.c b/src/plugins/quota/quota.c index 2470ba007d..dcebdce3bf 100644 --- a/src/plugins/quota/quota.c +++ b/src/plugins/quota/quota.c @@ -142,6 +142,13 @@ struct quota_root *quota_root_init(struct quota *quota, const char *root_def) quota_root_deinit(&root); return NULL; } + } else if (args != NULL) { + while (*args == ' ') args++; + if (*args != '\0') { + i_fatal("Quota root %s: backend %s " + "doesn't take any parameters (used: %s)", + root->name, backend_name, args); + } } return root; }