From 608aa112aa7d94a1720c909747dcd0b61c079453 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 12 Jun 2008 13:16:08 +0300 Subject: [PATCH] Quota: If quota root has unwanted parameters, log an error and die. --HG-- branch : HEAD --- src/plugins/quota/quota.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.47.3