mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 16:21:26 +03:00
resolved: don't allow adding of ANY class/type RRs to local zones
This commit is contained in:
parent
6992efee44
commit
1d3b690fbd
@ -165,6 +165,11 @@ int dns_zone_put(DnsZone *z, DnsResourceRecord *rr) {
|
||||
assert(z);
|
||||
assert(rr);
|
||||
|
||||
if (rr->key->class == DNS_CLASS_ANY)
|
||||
return -EINVAL;
|
||||
if (rr->key->type == DNS_TYPE_ANY)
|
||||
return -EINVAL;
|
||||
|
||||
existing = dns_zone_get(z, rr);
|
||||
if (existing)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user