mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
resolved: rr - fix parsing of NSEC3
We were appending rather than reading the bitmap.
This commit is contained in:
parent
89492aaf99
commit
0bbd72b2f3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user