mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:02:06 -04:00
[master] fix possible rndc secroots crash
3765. [bug] Fixed a bug in "rndc secroots" that could crash named when dumping an empty keynode. [RT #35469]
This commit is contained in:
parent
a60bf97f9f
commit
1aced7b870
2 changed files with 5 additions and 0 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
3765. [bug] Fixed a bug in "rndc secroots" that could crash
|
||||
named when dumping an empty keynode. [RT #35469]
|
||||
|
||||
3764. [bug] The dnssec-keygen/settime -S and -i options
|
||||
(to set up a successor key and set the prepublication
|
||||
interval) were missing from dnssec-keyfromlabel.
|
||||
|
|
|
|||
|
|
@ -576,6 +576,8 @@ dns_keytable_dump(dns_keytable_t *keytable, FILE *fp)
|
|||
|
||||
dns_rbtnodechain_current(&chain, NULL, NULL, &node);
|
||||
for (knode = node->data; knode != NULL; knode = knode->next) {
|
||||
if (knode->key == NULL)
|
||||
continue;
|
||||
dst_key_format(knode->key, pbuf, sizeof(pbuf));
|
||||
fprintf(fp, "%s ; %s\n", pbuf,
|
||||
knode->managed ? "managed" : "trusted");
|
||||
|
|
|
|||
Loading…
Reference in a new issue