Skip to content
Snippets Groups Projects
Commit f3edc3e2 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

put OPT and TSIG into proper section (additional)

parent ceb40208
No related branches found
No related tags found
No related merge requests found
......@@ -507,6 +507,10 @@ static int process_query_out(knot_pkt_t *pkt, knot_process_t *ctx)
*/
if (next_state == NS_PROC_DONE || next_state == NS_PROC_FULL) {
if (pkt->current != KNOT_ADDITIONAL) {
knot_pkt_begin(pkt, KNOT_ADDITIONAL);
}
/* Put OPT RR to the additional section. */
ret = answer_edns_put(pkt, qdata);
if (ret != KNOT_EOK) {
......
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