resolved: IXFR and AXFR cannot be the type of RRs, only of RR keys

Enforce this while parsing RRs.
This commit is contained in:
Lennart Poettering 2015-12-09 17:45:00 +01:00
parent d75acfb059
commit 8b5b564947
1 changed files with 3 additions and 1 deletions

View 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;
}