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
+5
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;