mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 14:00:00 -04:00
Merge branch '4552-keymgr-depends-function-bug-v9.18' into 'bind-9.18'
[9.18] Fix bug in keymgr Depends function See merge request isc-projects/bind9!8859
This commit is contained in:
commit
0ea08e6dc0
2 changed files with 10 additions and 1 deletions
4
CHANGES
4
CHANGES
|
|
@ -1,4 +1,6 @@
|
|||
6356. [bug] Create the pruning task in the dns_cache_flush(), so
|
||||
6359. [bug] Fix bug in Depends (keymgr_dep) function. [GL #4552]
|
||||
|
||||
6356. [bug] Attach the loop also in the dns_cache_flush(), so
|
||||
the cache pruning still works after the flush.
|
||||
[GL #4621]
|
||||
|
||||
|
|
|
|||
|
|
@ -617,6 +617,13 @@ keymgr_dep(dst_key_t *k, dns_dnsseckeylist_t *keyring, uint32_t *dep) {
|
|||
* Check if k is a direct successor of d, e.g. d depends on k.
|
||||
*/
|
||||
if (keymgr_direct_dep(d->key, k)) {
|
||||
dst_key_state_t hidden[NUM_KEYSTATES] = {
|
||||
HIDDEN, HIDDEN, HIDDEN, HIDDEN
|
||||
};
|
||||
if (keymgr_key_match_state(d->key, k, NA, NA, hidden)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (dep != NULL) {
|
||||
*dep = dst_key_id(d->key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue