2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-03 16:15:27 +00:00

minor code simplification

This commit is contained in:
Evan Hunt
2011-05-19 04:33:17 +00:00
parent 2a4f494565
commit d9343d917a

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: zone.c,v 1.606 2011/05/19 04:28:33 each Exp $ */ /* $Id: zone.c,v 1.607 2011/05/19 04:33:17 each Exp $ */
/*! \file */ /*! \file */
@@ -5007,6 +5007,8 @@ zone_resigninc(dns_zone_t *zone) {
while (result == ISC_R_SUCCESS) { while (result == ISC_R_SUCCESS) {
resign = rdataset.resign; resign = rdataset.resign;
covers = rdataset.covers; covers = rdataset.covers;
dns_rdataset_disassociate(&rdataset);
/* /*
* Stop if we hit the SOA as that means we have walked the * Stop if we hit the SOA as that means we have walked the
* entire zone. The SOA record should always be the most * entire zone. The SOA record should always be the most
@@ -5014,12 +5016,8 @@ zone_resigninc(dns_zone_t *zone) {
*/ */
/* XXXMPA increase number of RRsets signed pre call */ /* XXXMPA increase number of RRsets signed pre call */
if (covers == dns_rdatatype_soa || i++ > zone->signatures || if (covers == dns_rdatatype_soa || i++ > zone->signatures ||
resign > stop) { resign > stop)
dns_rdataset_disassociate(&rdataset);
break; break;
}
dns_rdataset_disassociate(&rdataset);
result = del_sigs(zone, db, version, name, covers, &sig_diff, result = del_sigs(zone, db, version, name, covers, &sig_diff,
zone_keys, nkeys, now); zone_keys, nkeys, now);