diff --git a/CHANGES b/CHANGES index c8e84c6d00..9ba1b7d489 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1045. [bug] It was possible to skip saving glue for a nameserver + for a stub zone. + 1044. [bug] Specifying allow-transfer, notify-source or notify-source-v6 in a stub zone was not treated as a error. diff --git a/lib/dns/zone.c b/lib/dns/zone.c index a1ffecc693..790bb93790 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.347 2001/09/17 14:04:32 marka Exp $ */ +/* $Id: zone.c,v 1.348 2001/10/11 06:12:42 marka Exp $ */ #include @@ -2956,10 +2956,8 @@ save_nsrrset(dns_message_t *message, dns_name_t *name, result = dns_rdata_tostruct(&rdata, &ns, NULL); dns_rdata_reset(&rdata); RUNTIME_CHECK(result == ISC_R_SUCCESS); - if (!dns_name_issubdomain(&ns.name, name)) { - result = dns_rdataset_next(nsrdataset); + if (!dns_name_issubdomain(&ns.name, name)) continue; - } rdataset = NULL; result = dns_message_findname(message, DNS_SECTION_ADDITIONAL, &ns.name, dns_rdatatype_a6,