Commit 8c1aa857 authored by Mark Andrews's avatar Mark Andrews
Browse files

308. [bug] Treat a SOA record not at top of zone as an error

                        when loading a zone. (RT #154)
parent 3cf456d5
308. [bug] Treat a SOA record not at top of zone as an error
when loading a zone. (RT #154)
307. [bug] When canceling a query, the resolver didn't check for
isc_socket_sendto() calls that did not yet have their
completion events posted, so it could (rarely) end up
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rbtdb.c,v 1.108 2000/06/22 21:54:36 tale Exp $ */
/* $Id: rbtdb.c,v 1.109 2000/07/04 04:28:44 marka Exp $ */
/*
* Principal Author: Bob Halley
......@@ -3586,6 +3586,15 @@ loading_addrdataset(void *arg, dns_name_t *name, dns_rdataset_t *rdataset) {
* locking.
*/
/*
* SOA records are only allowed at top of zone.
*/
if (rdataset->type == dns_rdatatype_soa &&
(rbtdb->common.attributes & DNS_DBATTR_CACHE) == 0 &&
!dns_name_equal(name, &rbtdb->common.origin))
return (DNS_R_NOTZONETOP);
if (dns_name_iswildcard(name)) {
/*
* NS record owners cannot legally be wild cards.
......
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