diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 8bfc5e8bc9..27373b34fe 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -6858,7 +6858,7 @@ del_sigs(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, } deleted = true; } - if (warn) { + if (warn && !deleted) { /* * At this point, we've got an RRSIG, * which is signed by an inactive key. @@ -6868,7 +6868,7 @@ del_sigs(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, * offline will prevent us spinning waiting * for the private part. */ - if (incremental && !deleted) { + if (incremental) { result = offline(db, ver, zonediff, name, rdataset.ttl, &rdata);