diff options
author | Tom Gundersen <teg@jklm.no> | 2015-07-23 13:48:56 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-07-23 18:06:50 +0200 |
commit | 8e6edc490c612d5c0f58a267b066e66a1ccaae2a (patch) | |
tree | 444adb140ba01b3d82f8e77686fbe31b15b37f9b /src/resolve/resolved-dns-packet.c | |
parent | 0bbd72b2f3d79b5f15ae1fa7d1fea6e579eeef97 (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.c | 5 |
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; |