mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-16 09:57:26 +03:00
resolved: IXFR and AXFR cannot be the type of RRs, only of RR keys
Enforce this while parsing RRs.
This commit is contained in:
parent
d75acfb059
commit
8b5b564947
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user