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

Include question in error response.

parent 8e6f01ae
No related branches found
No related tags found
1 merge request!147Packet Api Rewrite
......@@ -173,8 +173,7 @@ 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;
knot_wire_set_id(pkt->wire, knot_wire_get_id(query->wire));
knot_wire_set_opcode(pkt->wire, knot_wire_get_opcode(query->wire));
memcpy(pkt->wire, query->wire, knot_pkt_question_size(query));
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