Commit 2f6a81984b for bind
commit 2f6a81984bb61ead7c6f3f54ba1b78544d05261b
Author: Matthijs Mekking <matthijs@isc.org>
Date: Thu Oct 29 17:49:03 2026 +0100
Move notifycds code block
Move this code block up so that it is logically grouped with setting
the same flag for NOTIFY(SOA).
diff --git a/lib/dns/zone.c b/lib/dns/zone.c
index 440d780998..70fe8a8281 100644
--- a/lib/dns/zone.c
+++ b/lib/dns/zone.c
@@ -19172,6 +19172,15 @@ zone_rekey(dns_zone_t *zone) {
dns_notifyctx_setflag(&zone->notifysoa, DNS_NOTIFY_NEEDSEND);
+ /*
+ * If the CDS/CDNSKEY RRset has changed, send NOTIFY(CDS)
+ * to endpoints.
+ */
+ if (notifycds) {
+ dns_notifyctx_setflag(&zone->notifycds,
+ DNS_NOTIFY_NEEDSEND);
+ }
+
zone_needdump(zone, DNS_DUMP_DELAY);
dns__zone_settimer(zone, timenow);
@@ -19414,15 +19423,6 @@ zone_rekey(dns_zone_t *zone) {
dnssec_log(zone, ISC_LOG_DEBUG(3), "keymgr: %s done", namebuf);
}
- /*
- * If the CDS/CDNSKEY RRset has changed, send NOTIFY(CDS)
- * to endpoints.
- */
- if (notifycds) {
- dns_notifyctx_setflag(&zone->notifycds,
- DNS_NOTIFY_NEEDSEND);
- }
-
result = ISC_R_SUCCESS;
cleanup: