mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-11 12:27:43 +02:00
Test DLV anchor.
git-svn-id: file:///svn/unbound/trunk@1202 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -119,11 +119,11 @@ nsec_at_apex(ldns_buffer* pkt)
|
||||
}
|
||||
|
||||
/* see if SOA bit is set. */
|
||||
if(ldns_buffer_position(pkt) < pos+rdatalen) {
|
||||
if(ldns_buffer_position(pkt) < pos+4+rdatalen) {
|
||||
/* nsec type bitmap contains items */
|
||||
uint8_t win, blen, bits;
|
||||
/* need: windownum, bitmap len, firstbyte */
|
||||
if(ldns_buffer_position(pkt)+3 > pos+rdatalen) {
|
||||
if(ldns_buffer_position(pkt)+3 > pos+4+rdatalen) {
|
||||
ldns_buffer_set_position(pkt, pos);
|
||||
return 0; /* malformed nsec */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user