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

AXFR/IXFR: do not set AA flag for queries

parent 4a79d010
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,11 @@ static knot_pkt_t *zone_query(const zone_t *zone, uint16_t pkt_type, mm_ctx_t *m
}
knot_wire_set_id(pkt->wire, dnssec_random_uint16_t());
knot_wire_set_aa(pkt->wire);
knot_wire_set_opcode(pkt->wire, opcode);
if (pkt_type == KNOT_QUERY_NOTIFY) {
knot_wire_set_aa(pkt->wire);
}
knot_pkt_put_question(pkt, zone->name, KNOT_CLASS_IN, query_type);
/* Put current SOA (optional). */
......
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