]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: when matching SOA RRs, honour RR class
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Dec 2015 15:28:35 +0000 (16:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 26 Dec 2015 18:09:09 +0000 (19:09 +0100)
src/resolve/resolved-dns-rr.c

index 98a3a3351d92a18727ec9e01a36b4d088e12f814..ac24169344e1f3e3d06193c35cbcf14816877700 100644 (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)