Skip to content
Snippets Groups Projects
Commit 623fd489 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

rrset: extra sanity check.

parent 441881a6
No related branches found
No related tags found
No related merge requests found
......@@ -527,6 +527,10 @@ int knot_rrset_rdata_from_wire_one(knot_rrset_t *rrset,
return KNOT_EINVAL;
}
if (total_size - *pos < rdlength) {
return KNOT_EMALF;
}
if (rdlength == 0) {
return knot_rrset_add_rdata(rrset, NULL, 0, ttl, mm);
}
......
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