1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 20:25:25 +03:00

resolved: don't allow adding of ANY class/type RRs to local zones

This commit is contained in:
Lennart Poettering 2014-07-30 02:04:07 +02:00
parent 6992efee44
commit 1d3b690fbd

View File

@ -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;