[PATCH 03/31] rwrap: Compare dns names case insensitive.
Andreas Schneider
asn at samba.org
Wed Dec 3 07:44:59 MST 2014
From: Jakub Hrozek <jakub.hrozek at gmail.com>
Signed-off-by: Jakub Hrozek <jakub.hrozek at gmail.com>
Reviewed-by: Andreas Schneider <asn at samba.org>
Reviewed-by: Guenther Deschner <gd at samba.org>
Signed-off-by: Andreas Schneider <asn at samba.org>
---
lib/resolv_wrapper/resolv_wrapper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/resolv_wrapper/resolv_wrapper.c b/lib/resolv_wrapper/resolv_wrapper.c
index 35f426d..07ec85c 100644
--- a/lib/resolv_wrapper/resolv_wrapper.c
+++ b/lib/resolv_wrapper/resolv_wrapper.c
@@ -538,7 +538,7 @@ static int rwrap_fake_empty_query(const char *key,
#define TYPE_MATCH(type, ns_type, rec_type, str_type, key, query) \
((type) == (ns_type) && \
(strncmp((rec_type), (str_type), sizeof(str_type)) == 0) && \
- (strcmp(key, query)) == 0)
+ (strcasecmp(key, query)) == 0)
/* Reads in a file in the following format:
--
2.1.3
More information about the samba-technical
mailing list