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

abort transfer if SOA response is not authoritative.

This commit is contained in:
Mark Andrews
2001-08-30 05:12:39 +00:00
parent 2c64908ae0
commit fa59c08f71

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: xfrin.c,v 1.124 2001/08/08 22:54:46 gson Exp $ */
/* $Id: xfrin.c,v 1.125 2001/08/30 05:12:39 marka Exp $ */
#include <config.h>
@@ -1148,6 +1148,11 @@ xfrin_recv_done(isc_task_t *task, isc_event_t *ev) {
goto try_axfr;
}
if (xfr->reqtype == dns_rdatatype_soa &&
(msg->flags & DNS_MESSAGEFLAG_AA) == 0) {
FAIL(DNS_R_NOTAUTHORITATIVE);
}
result = dns_message_checksig(msg, dns_zone_getview(xfr->zone));
if (result != ISC_R_SUCCESS) {