From: Timo Sirainen Date: Thu, 28 Nov 2024 10:57:25 +0000 (+0200) Subject: config: Store local_name lowercased in filters X-Git-Tag: 2.4.1~454 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8d152e16acaf5620011240632f812e2d5229c2c;p=thirdparty%2Fdovecot%2Fcore.git config: Store local_name lowercased in filters --- diff --git a/src/config/config-filter.c b/src/config/config-filter.c index 7a585a2b5b..3ce3c119ec 100644 --- a/src/config/config-filter.c +++ b/src/config/config-filter.c @@ -123,7 +123,7 @@ bool config_filters_equal_no_recursion(const struct config_filter *f1, if (!net_ip_compare(&f1->local_net, &f2->local_net)) return FALSE; - if (null_strcasecmp(f1->local_name, f2->local_name) != 0) + if (null_strcmp(f1->local_name, f2->local_name) != 0) return FALSE; if (null_strcmp(f1->filter_name, f2->filter_name) != 0) diff --git a/src/config/config-parser.c b/src/config/config-parser.c index 5364debe6d..477aa8cee4 100644 --- a/src/config/config-parser.c +++ b/src/config/config-parser.c @@ -1211,7 +1211,7 @@ int config_filter_parse(struct config_filter *filter, pool_t pool, t_strcut(parent->filter_name, '/'), t_strcut(parent->filter_name, '/')); else - filter->local_name = p_strdup(pool, value); + filter->local_name = p_strdup(pool, t_str_lcase(value)); } else if (strcmp(key, "remote") == 0) { if (parent->protocol != NULL) *error_r = "protocol { remote { .. } } not allowed (use remote { protocol { .. } } instead)";