mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-02 13:30:44 -05:00
Insist that kasp is not linked.
This commit is contained in:
parent
f11ce44818
commit
5eedd365d4
1 changed files with 2 additions and 0 deletions
|
|
@ -82,6 +82,8 @@ destroy(dns_kasp_t *kasp) {
|
|||
dns_kasp_key_t *key;
|
||||
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) {
|
||||
key_next = ISC_LIST_NEXT(key, link);
|
||||
ISC_LIST_UNLINK(kasp->keys, key, link);
|
||||
|
|
|
|||
Loading…
Reference in a new issue