resolved: rr - fix parsing of NSEC3

We were appending rather than reading the bitmap.
This commit is contained in:
Tom Gundersen
2015-07-23 18:06:50 +02:00
parent 89492aaf99
commit 0bbd72b2f3
+3 -1
View File
@@ -1712,10 +1712,12 @@ int dns_packet_read_rr(DnsPacket *p, DnsResourceRecord **ret, size_t *start) {
if (r < 0)
goto fail;
r = dns_packet_append_types(p, rr->nsec3.types, NULL);
r = dns_packet_read_type_windows(p, &rr->nsec.types, offset + rdlength - p->rindex, NULL);
if (r < 0)
goto fail;
/* empty non-terminals can have NSEC3 records, so empty bitmaps are allowed */
break;
}
default: