If there happens to be a RRSIG(SOA) that is not at the zone apex
for any reason it should not be considered as a stopping condition
for incremental zone signing.
(cherry picked from commit
b7cdc3583e3643c2177a62bd94ca598360a83fc3)
* recent signature.
*/
/* XXXMPA increase number of RRsets signed pre call */
- if (covers == dns_rdatatype_soa || i++ > zone->signatures ||
- resign > stop) {
+ if ((covers == dns_rdatatype_soa &&
+ dns_name_equal(name, &zone->origin)) ||
+ i++ > zone->signatures || resign > stop)
+ {
break;
}