diff --git a/lib/dns/badcache.c b/lib/dns/badcache.c index 47d3b81236..388b055ab0 100644 --- a/lib/dns/badcache.c +++ b/lib/dns/badcache.c @@ -237,7 +237,7 @@ bcentry_purge(struct cds_lfht *ht, struct cds_list_head *lru, isc_stdtime_t now) { size_t count = 10; dns_bcentry_t *bad; - cds_list_for_each_entry_rcu(bad, lru, lru_head) { + cds_list_for_each_entry_rcu (bad, lru, lru_head) { if (bcentry_alive(ht, bad, now)) { break; } diff --git a/lib/dns/qpzone.c b/lib/dns/qpzone.c index 3cdb71e72c..bfef5f9ed9 100644 --- a/lib/dns/qpzone.c +++ b/lib/dns/qpzone.c @@ -3033,7 +3033,7 @@ qpzone_check_zonecut(qpznode_t *node, void *arg DNS__DB_FLARG) { cds_list_for_each_entry_rcu (hlist, &node->headers, nnode) { if (hlist->type != dns_rdatatype_ns && hlist->type != dns_rdatatype_dname && - hlist->type == DNS_SIGTYPE(dns_rdatatype_dname)) + hlist->type != DNS_SIGTYPE(dns_rdatatype_dname)) { continue; }