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

fix possible null dereference, CID 993739

parent 07fdf66a
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,9 @@ static int parse_partial_rr(scanner_t *s, const char *lp, unsigned flags) {
knot_dname_t* suf = knot_dname_new_from_wire(s->zone_origin,
s->zone_origin_length,
NULL);
if (suf == NULL) {
return KNOT_ENOMEM;
}
knot_dname_cat(owner, suf);
knot_dname_free(&suf);
}
......
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