Skip to content
Snippets Groups Projects
Commit 617f90cd authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Added check to question parsing.

parent d49b6cfd
No related branches found
No related tags found
No related merge requests found
......@@ -299,6 +299,7 @@ static int knot_packet_parse_question(const uint8_t *wire, size_t *pos,
return KNOT_ENOMEM;
}
} else {
assert(question->qname != NULL); /* When alloc=0, must be set. */
void *parsed = knot_dname_parse_from_wire(wire, pos,
i + 1,
NULL, question->qname);
......
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