]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
abort transfer if SOA response is not authoritative.
authorMark Andrews <marka@isc.org>
Thu, 30 Aug 2001 05:12:39 +0000 (05:12 +0000)
committerMark Andrews <marka@isc.org>
Thu, 30 Aug 2001 05:12:39 +0000 (05:12 +0000)
lib/dns/xfrin.c

index 20039f438501cae74f0dcfcc2782206a5c0fa03f..9cf81a4c1aec96f29ddad7b30ed661bd7b5ee7bb 100644 (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) {