Skip to content
Snippets Groups Projects
Commit 07cd9b80 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

DNSSEC: assert dname owner is present when creating NSEC RR set

Therefore knot_dname_size() return non-negative value.

CID: 1091463
parent 0d19d792
No related branches found
No related tags found
No related merge requests found
......@@ -195,6 +195,7 @@ static knot_rrset_t *create_nsec_rrset(const knot_node_t *from,
}
// Create RDATA
assert(to->owner);
size_t next_owner_size = knot_dname_size(to->owner);
size_t rdata_size = next_owner_size + bitmap_size(&rr_types);
uint8_t *rdata = knot_rrset_create_rdata(rrset, rdata_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment