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

Clear packet on create.

parent 4c388acb
Branches
Tags
No related merge requests found
......@@ -49,6 +49,7 @@ static int xfrin_create_query(knot_dname_t *qname, uint16_t qtype,
CHECK_ALLOC_LOG(pkt, KNOT_ENOMEM);
/* Set random query ID. */
knot_pkt_clear(pkt);
knot_wire_set_id(pkt->wire, knot_random_id());
int ret = knot_pkt_put_question(pkt, qname, qclass, qtype);
if (ret != KNOT_EOK) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment