Skip to content
Snippets Groups Projects
Commit a2a3c3a6 authored by Dominik Taborsky's avatar Dominik Taborsky
Browse files

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

parent ac6ae432
No related branches found
No related tags found
1 merge request!367Packet's wire memory initialization
......@@ -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_
......
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