2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

treat all responses to AXFR requests as AXFR responses

This commit is contained in:
Andreas Gustafsson
2000-07-05 20:28:34 +00:00
parent 8681403c16
commit b7b5dd0d10

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: xfrin.c,v 1.81 2000/07/03 22:42:36 gson Exp $ */
/* $Id: xfrin.c,v 1.82 2000/07/05 20:28:34 gson Exp $ */
#include <config.h>
@@ -449,7 +449,8 @@ xfr_rr(dns_xfrin_ctx_t *xfr, dns_name_t *name, isc_uint32_t ttl,
* If the transfer begins with one SOA record, it is an AXFR,
* if it begins with two SOAs, it is an IXFR.
*/
if (rdata->type == dns_rdatatype_soa &&
if (xfr->reqtype == dns_rdatatype_ixfr &&
rdata->type == dns_rdatatype_soa &&
xfr->ixfr.request_serial == dns_soa_getserial(rdata)) {
xfrin_log(xfr, ISC_LOG_DEBUG(3),
"got incremental response");