Commit bb68beac authored by Daniel Salzman's avatar Daniel Salzman

pkt: fix malformed outgoing transfer if big zone and TSIG

parent b921c005
......@@ -226,6 +226,7 @@ void knot_pkt_clear_payload(knot_pkt_t *pkt)
/* Keep question. */
pkt->parsed = 0;
pkt->reserved = 0;
pkt->size = KNOT_WIRE_HEADER_SIZE + knot_pkt_question_size(pkt);
knot_wire_set_ancount(pkt->wire, 0);
knot_wire_set_nscount(pkt->wire, 0);
......
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