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

Yay! Question included in error response.

parent 9bc5800e
No related branches found
No related tags found
1 merge request!147Packet Api Rewrite
......@@ -174,7 +174,8 @@ int ns_proc_query_err(knot_pkt_t *pkt, ns_proc_context_t *ctx)
/* Copy MsgId, opcode and RD bit. Set RCODE. */
knot_pkt_t *query = data->pkt;
memcpy(pkt->wire, query->wire, knot_pkt_question_size(query));
pkt->size = knot_pkt_question_size(query);
memcpy(pkt->wire, query->wire, pkt->size);
knot_wire_set_qr(pkt->wire);
knot_wire_set_rcode(pkt->wire, data->rcode);
if (knot_wire_get_rd(query->wire)) {
......
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