]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
addns: Make matching A to NS records case insensitive
authorVolker Lendecke <vl@samba.org>
Sat, 13 Jun 2026 07:17:16 +0000 (09:17 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 3 Jul 2026 08:08:36 +0000 (08:08 +0000)
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 <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/addns/dnsquery.c

index 3bdb2335ef38cbc37a73206ba8461b5b1121e5f6..55ba5a68d392722baae654918f902e0c73b9f956 100644 (file)
@@ -318,7 +318,7 @@ static void ads_dns_lookup_ns_done(struct tevent_req *subreq)
                for (j=0; j<state->num_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;
                        }
                }