changeset 20888:79bc30406f1e

config: Compare local_name case insensitive DNS and certificate names should be compared case insensitive.
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Sat, 15 Oct 2016 23:04:35 +0300
parents ead4bfb88da1
children f8ba998a6b7c
files src/config/config-filter.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/config-filter.c	Mon Oct 17 23:25:27 2016 +0300
+++ b/src/config/config-filter.c	Sat Oct 15 23:04:35 2016 +0300
@@ -36,7 +36,7 @@
 	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 @@
 	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;