From: Aki Tuomi Date: Sat, 15 Oct 2016 20:04:35 +0000 (+0300) Subject: config: Compare local_name case insensitive X-Git-Tag: 2.3.0.rc1~2886 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c19c44f87ef3fe40cae4be9a86ee9327a7370e46;p=thirdparty%2Fdovecot%2Fcore.git config: Compare local_name case insensitive DNS and certificate names should be compared case insensitive. --- diff --git a/src/config/config-filter.c b/src/config/config-filter.c index e8cc010422..87a24da26c 100644 --- a/src/config/config-filter.c +++ b/src/config/config-filter.c @@ -36,7 +36,7 @@ static bool config_filter_match_rest(const struct config_filter *mask, if (mask->local_name != NULL) { if (filter->local_name == NULL) return FALSE; - if (strcmp(filter->local_name, mask->local_name) != 0) + if (strcasecmp(filter->local_name, mask->local_name) != 0) return FALSE; } /* FIXME: it's not comparing full masks */ @@ -82,7 +82,7 @@ bool config_filters_equal(const struct config_filter *f1, if (!net_ip_compare(&f1->local_net, &f2->local_net)) return FALSE; - if (null_strcmp(f1->local_name, f2->local_name) != 0) + if (null_strcasecmp(f1->local_name, f2->local_name) != 0) return FALSE; return TRUE;