mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-05 00:55:24 +00:00
Small keymgr improvement
When a key is to be purged, don't run the key state machinery for it.
(cherry picked from commit af54e3dadc
)
This commit is contained in:
@@ -1466,6 +1466,11 @@ transition:
|
||||
char keystr[DST_KEY_FORMATSIZE];
|
||||
dst_key_format(dkey->key, keystr, sizeof(keystr));
|
||||
|
||||
if (dkey->purge) {
|
||||
/* Skip purged keys. */
|
||||
continue;
|
||||
}
|
||||
|
||||
/* For all records related to this key. */
|
||||
for (int i = 0; i < NUM_KEYSTATES; i++) {
|
||||
isc_result_t ret;
|
||||
|
Reference in New Issue
Block a user