mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Insist that kasp is not linked.
This commit is contained in:
parent
f11ce44818
commit
5eedd365d4
@ -82,6 +82,8 @@ destroy(dns_kasp_t *kasp) {
|
|||||||
dns_kasp_key_t *key;
|
dns_kasp_key_t *key;
|
||||||
dns_kasp_key_t *key_next;
|
dns_kasp_key_t *key_next;
|
||||||
|
|
||||||
|
ISC_INSIST(!ISC_LINK_LINKED(kasp, link));
|
||||||
|
|
||||||
for (key = ISC_LIST_HEAD(kasp->keys); key != NULL; key = key_next) {
|
for (key = ISC_LIST_HEAD(kasp->keys); key != NULL; key = key_next) {
|
||||||
key_next = ISC_LIST_NEXT(key, link);
|
key_next = ISC_LIST_NEXT(key, link);
|
||||||
ISC_LIST_UNLINK(kasp->keys, key, link);
|
ISC_LIST_UNLINK(kasp->keys, key, link);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user