Commit a2a3c3a6 authored by Dominik Taborsky's avatar Dominik Taborsky

packet: bugfix: initialize the complete wire in a packet."

parent ac6ae432
......@@ -317,7 +317,7 @@ void knot_pkt_clear(knot_pkt_t *pkt)
/* Reset to header size. */
pkt->size = KNOT_WIRE_HEADER_SIZE;
memset(pkt->wire, 0, pkt->size);
memset(pkt->wire, 0, pkt->max_size);
}
_public_
......
Markdown is supported
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