mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-26 11:32:01 -05:00
if the first RR in an incoming zone transfer was not an SOA,
we got an assertion failure
This commit is contained in:
parent
7e2c8092db
commit
a25310fd1d
2 changed files with 10 additions and 2 deletions
4
CHANGES
4
CHANGES
|
|
@ -1,3 +1,7 @@
|
|||
37. [bug] If the first RR in an incoming zone transfer was
|
||||
not an SOA, the server died with an assertion failure
|
||||
instead of just reporting an error.
|
||||
|
||||
36. [cleanup] Change DNS_R_SUCCESS (and others) to ISC_R_SUCCESS
|
||||
|
||||
35. [performance] Log messages which are of a level too high to be
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: xfrin.c,v 1.59 2000/04/06 22:02:32 explorer Exp $ */
|
||||
/* $Id: xfrin.c,v 1.60 2000/04/07 19:38:50 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -405,7 +405,11 @@ xfr_rr(dns_xfrin_ctx_t *xfr,
|
|||
break;
|
||||
|
||||
case XFRST_INITIALSOA:
|
||||
INSIST(rdata->type == dns_rdatatype_soa);
|
||||
if (rdata->type != dns_rdatatype_soa) {
|
||||
xfrin_log(xfr, ISC_LOG_ERROR,
|
||||
"first RR in zone transfer must be SOA");
|
||||
FAIL(DNS_R_FORMERR);
|
||||
}
|
||||
/*
|
||||
* Remember the serial number in the intial SOA.
|
||||
* We need it to recognize the end of an IXFR.
|
||||
|
|
|
|||
Loading…
Reference in a new issue