Commit d9343d91 authored by Evan Hunt's avatar Evan Hunt
Browse files

minor code simplification

parent 2a4f4945
......@@ -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);
......
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