mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
minor code simplification
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* 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 */
|
||||
|
||||
@@ -5007,6 +5007,8 @@ zone_resigninc(dns_zone_t *zone) {
|
||||
while (result == ISC_R_SUCCESS) {
|
||||
resign = rdataset.resign;
|
||||
covers = rdataset.covers;
|
||||
dns_rdataset_disassociate(&rdataset);
|
||||
|
||||
/*
|
||||
* Stop if we hit the SOA as that means we have walked the
|
||||
* 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 */
|
||||
if (covers == dns_rdatatype_soa || i++ > zone->signatures ||
|
||||
resign > stop) {
|
||||
dns_rdataset_disassociate(&rdataset);
|
||||
resign > stop)
|
||||
break;
|
||||
}
|
||||
|
||||
dns_rdataset_disassociate(&rdataset);
|
||||
|
||||
result = del_sigs(zone, db, version, name, covers, &sig_diff,
|
||||
zone_keys, nkeys, now);
|
||||
|
Reference in New Issue
Block a user