summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-packet.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-18 19:06:23 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-18 19:06:23 +0100
commit222148b66d1abf5b05c9d803472a9368331dae53 (patch)
tree2b149f95d2ebb327191e5c8da9a96b134276133a /src/resolve/resolved-dns-packet.c
parentff7febd50a69c464eb2373706059194b60056883 (diff)
resolved: make use of dns_{class|type}_is_{pseudo|valid_rr}() everywhere
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r--src/resolve/resolved-dns-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c
index e8f570555b..bb299462a7 100644
--- a/src/resolve/resolved-dns-packet.c
+++ b/src/resolve/resolved-dns-packet.c
@@ -1531,7 +1531,7 @@ int dns_packet_read_rr(DnsPacket *p, DnsResourceRecord **ret, size_t *start) {
if (r < 0)
goto fail;
- if (key->class == DNS_CLASS_ANY ||
+ if (!dns_class_is_valid_rr(key->class)||
!dns_type_is_valid_rr(key->type)) {
r = -EBADMSG;
goto fail;