diff options
author | Daniel Mack <github@zonque.org> | 2015-11-26 10:56:42 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-11-26 10:56:42 +0100 |
commit | 845f09c86ee1bacea63d926b3e33f3a0c7c354b3 (patch) | |
tree | bd6b36e01913d7cd2de1b1b8c14f58e7f1df4b85 /src/resolve/resolved-dns-packet.c | |
parent | 30e07c7dbc5aa8e10e2f0d2a8d9cf7423835a8b4 (diff) | |
parent | 95d46fcaa4f27bc5e675e8de39ab3acc4732e39b (diff) |
Merge pull request #2034 from teg/resolved-fix
minor resolved fixes
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r-- | src/resolve/resolved-dns-packet.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index 472486777c..4b6b6afae8 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -1746,12 +1746,9 @@ int dns_packet_read_rr(DnsPacket *p, DnsResourceRecord **ret, size_t *start) { if (r < 0) goto fail; - /* The types bitmap must contain at least the NSEC record itself, so an empty bitmap means - something went wrong */ - if (bitmap_isclear(rr->nsec.types)) { - r = -EBADMSG; - goto fail; - } + /* We accept empty NSEC bitmaps. The bit indicating the presence of the NSEC record itself + * is redundant and in e.g., RFC4956 this fact is used to define a use for NSEC records + * without the NSEC bit set. */ break; |