From: Volker Lendecke Date: Sat, 13 Jun 2026 07:17:16 +0000 (+0200) Subject: addns: Make matching A to NS records case insensitive X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bcb5772e4f1f242f34d77a5ec8752ec66c63f7d;p=thirdparty%2Fsamba.git addns: Make matching A to NS records case insensitive We do the same in ads_dns_lookup_srv_done(), there is no reason to believe the same can not happen for ns records. Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/lib/addns/dnsquery.c b/lib/addns/dnsquery.c index 3bdb2335ef3..55ba5a68d39 100644 --- a/lib/addns/dnsquery.c +++ b/lib/addns/dnsquery.c @@ -318,7 +318,7 @@ static void ads_dns_lookup_ns_done(struct tevent_req *subreq) for (j=0; jnum_nss; j++) { struct dns_rr_ns *ns = &state->nss[j]; - if (strcmp(ns->hostname, ar->name) == 0) { + if (strequal(ns->hostname, ar->name)) { ns->ss = addr.u.ss; } }