summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-packet.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-07-23 13:48:56 +0200
committerTom Gundersen <teg@jklm.no>2015-07-23 18:06:50 +0200
commit8e6edc490c612d5c0f58a267b066e66a1ccaae2a (patch)
tree444adb140ba01b3d82f8e77686fbe31b15b37f9b /src/resolve/resolved-dns-packet.c
parent0bbd72b2f3d79b5f15ae1fa7d1fea6e579eeef97 (diff)
resolved: rr - ignore pseudo types in NSEC(3) bitmaps
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r--src/resolve/resolved-dns-packet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c
index b76f981906..2dd1f564fa 100644
--- a/src/resolve/resolved-dns-packet.c
+++ b/src/resolve/resolved-dns-packet.c
@@ -1208,9 +1208,12 @@ static int dns_packet_read_type_window(DnsPacket *p, Bitmap **types, size_t *sta
if (bitmap[i] & bitmask) {
uint16_t n;
- /* XXX: ignore pseudo-types? see RFC4034 section 4.1.2 */
n = (uint16_t) window << 8 | (uint16_t) bit;
+ /* Ignore pseudo-types. see RFC4034 section 4.1.2 */
+ if (dns_type_is_pseudo(n))
+ continue;
+
r = bitmap_set(*types, n);
if (r < 0)
goto fail;