resolved: when matching SOA RRs, honour RR class

This commit is contained in:
Lennart Poettering 2015-12-21 16:28:35 +01:00
parent 81f7fc5e84
commit 65b200e70d

View file

@ -261,7 +261,7 @@ int dns_resource_key_match_soa(const DnsResourceKey *key, const DnsResourceKey *
/* Checks whether 'soa' is a SOA record for the specified key. */
if (soa->class != DNS_CLASS_IN)
if (soa->class != key->class)
return 0;
if (soa->type != DNS_TYPE_SOA)