Commit f3edc3e2 authored by Jan Včelák's avatar Jan Včelák 🚀

put OPT and TSIG into proper section (additional)

parent ceb40208
......@@ -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) {
......
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