From: Lennart Poettering Date: Mon, 21 Dec 2015 15:28:35 +0000 (+0100) Subject: resolved: when matching SOA RRs, honour RR class X-Git-Tag: v229~189^2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65b200e70d01cb7c513114b602c9b5cf41348f77;p=thirdparty%2Fsystemd.git resolved: when matching SOA RRs, honour RR class --- diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c index 98a3a3351d9..ac24169344e 100644 --- a/src/resolve/resolved-dns-rr.c +++ b/src/resolve/resolved-dns-rr.c @@ -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)