4837. [bug] dns_update_signatures{inc} (add_sigs) was not
properly determining if there were active KSK and
ZSK keys for a algorithm when update-check-ksk is
true (default) leaving records unsigned. [RT #46743]
(cherry picked from commit 196e01da5f)
(cherry picked from commit bf459d24a1)
(cherry picked from commit 5623f65cc4)
This commit is contained in:
@@ -1112,6 +1112,8 @@ add_sigs(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db,
|
||||
|
||||
if (!dst_key_isprivate(keys[i]))
|
||||
continue;
|
||||
if (dst_key_inactive(keys[i])) /* Should be redundant. */
|
||||
continue;
|
||||
|
||||
if (check_ksk && !REVOKE(keys[i])) {
|
||||
isc_boolean_t have_ksk, have_nonksk;
|
||||
@@ -1125,6 +1127,10 @@ add_sigs(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db,
|
||||
for (j = 0; j < nkeys; j++) {
|
||||
if (j == i || ALG(keys[i]) != ALG(keys[j]))
|
||||
continue;
|
||||
if (!dst_key_isprivate(keys[j]))
|
||||
continue;
|
||||
if (dst_key_inactive(keys[j])) /* SBR */
|
||||
continue;
|
||||
if (REVOKE(keys[j]))
|
||||
continue;
|
||||
if (KSK(keys[j]))
|
||||
|
||||
Reference in New Issue
Block a user