]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
test for SIGTYPE correctly
authorEvan Hunt <each@isc.org>
Sun, 1 Oct 2023 08:06:49 +0000 (01:06 -0700)
committerEvan Hunt <each@isc.org>
Wed, 14 Feb 2024 17:32:20 +0000 (09:32 -0800)
a comparison was incorrectly removed during a previous merge.

lib/dns/rbt-cachedb.c

index c97f078c66aa8ae3d63fe510e7c1c8a8410ec697..55fe3540e48e80025f50544d12b836490c1d6983 100644 (file)
@@ -957,7 +957,9 @@ cache_find(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
                                   DNS_SIGTYPE(dns_rdatatype_nsec))
                        {
                                nsecsig = header;
-                       } else if (cname_ok && DNS_SIGTYPE(dns_rdatatype_cname))
+                       } else if (cname_ok &&
+                                  header->type ==
+                                          DNS_SIGTYPE(dns_rdatatype_cname))
                        {
                                /*
                                 * If we get a CNAME match, we'll also need