Commit 6d33c58e authored by Jan Kadlec's avatar Jan Kadlec

Revert "ixfr: Fixed fallback to AXFR for AXFR-style IXFR."

This reverts commit e774c8a8.
parent 55049f60
......@@ -679,17 +679,14 @@ int ixfr_process_answer(knot_pkt_t *pkt, struct answer_data *adata)
return NS_PROC_FAIL;
}
if (adata->ext == NULL) {
/* Check for AXFR-style IXFR on first run. */
if (!ixfr_enough_data(pkt)) {
return NS_PROC_FAIL;
}
if (!ixfr_enough_data(pkt)) {
return NS_PROC_FAIL;
}
if (ixfr_is_axfr(pkt)) {
IXFRIN_LOG(LOG_NOTICE, "fallback to AXFR");
knot_wire_set_opcode(adata->param->query->wire, KNOT_RRTYPE_AXFR);
return axfr_answer_process(pkt, adata);
}
/* Check for AXFR-style IXFR. */
if (ixfr_is_axfr(pkt)) {
IXFRIN_LOG(LOG_NOTICE, "fallback to AXFR");
return axfr_answer_process(pkt, adata);
}
/* Check RCODE. */
......
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