From 70db22e93b7313ce3222b463d549f303f0abdee3 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 30 Jan 1999 04:27:13 +0000 Subject: [PATCH] comparisions should be case-insensitive --- lib/dns/rbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index f70cbd46c8..42fbd2f693 100644 --- a/lib/dns/rbt.c +++ b/lib/dns/rbt.c @@ -1061,7 +1061,7 @@ static int cmp_label(dns_label_t *a, dns_label_t *b) { int i; - i = strncmp(a->base, b->base, MIN(a->length, b->length)); + i = strncasecmp(a->base, b->base, MIN(a->length, b->length)); if (i == 0 && a->length != b->length) return(a->length < b->length ? -1 : 1);