resolved: IXFR and AXFR cannot be the type of RRs, only of RR keys
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Dec 2015 16:45:00 +0000 (17:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Dec 2015 10:35:52 +0000 (11:35 +0100)
Enforce this while parsing RRs.

src/resolve/resolved-dns-packet.c

index d208146..b9c2dee 100644 (file)
@@ -1526,7 +1526,9 @@ int dns_packet_read_rr(DnsPacket *p, DnsResourceRecord **ret, size_t *start) {
                 goto fail;
 
         if (key->class == DNS_CLASS_ANY ||
-            key->type == DNS_TYPE_ANY) {
+            key->type == DNS_TYPE_ANY ||
+            key->type == DNS_TYPE_AXFR ||
+            key->type == DNS_TYPE_IXFR) {
                 r = -EBADMSG;
                 goto fail;
         }