]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota: Fix infinite loop when parsing quota parameters
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 24 May 2017 15:27:10 +0000 (18:27 +0300)
committerGitLab <gitlab@git.dovecot.net>
Fri, 26 May 2017 09:14:02 +0000 (12:14 +0300)
Broken by previous quota changes.

src/plugins/quota/quota.c

index e388b1c61fb03d087701c48801266c819b35d997..014578ad625ad7b3c987733fc713663f4bba9a72 100644 (file)
@@ -1420,7 +1420,7 @@ int quota_parse_parameters(struct quota_root *root, const char **args, const cha
                                }
                        }
                }
-               if (valid_params->param_name != NULL) {
+               if (valid_params->param_name == NULL) {
                        if (fail_on_unknown) {
                                *error_r = t_strdup_printf(
                                        "Unknown parameter for backend %s: %s",