diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-12-18 19:06:23 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-12-18 19:06:23 +0100 |
commit | 222148b66d1abf5b05c9d803472a9368331dae53 (patch) | |
tree | 2b149f95d2ebb327191e5c8da9a96b134276133a /src/resolve/resolved-dns-zone.c | |
parent | ff7febd50a69c464eb2373706059194b60056883 (diff) |
resolved: make use of dns_{class|type}_is_{pseudo|valid_rr}() everywhere
Diffstat (limited to 'src/resolve/resolved-dns-zone.c')
-rw-r--r-- | src/resolve/resolved-dns-zone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-zone.c b/src/resolve/resolved-dns-zone.c index 0ddf2be8b3..20c8a4da90 100644 --- a/src/resolve/resolved-dns-zone.c +++ b/src/resolve/resolved-dns-zone.c @@ -223,9 +223,9 @@ int dns_zone_put(DnsZone *z, DnsScope *s, DnsResourceRecord *rr, bool probe) { assert(s); assert(rr); - if (rr->key->class == DNS_CLASS_ANY) + if (dns_class_is_pseudo(rr->key->class)) return -EINVAL; - if (rr->key->type == DNS_TYPE_ANY) + if (dns_type_is_pseudo(rr->key->type)) return -EINVAL; existing = dns_zone_get(z, rr); |