2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

Insist that kasp is not linked.

This commit is contained in:
Mark Andrews 2019-11-05 13:36:40 +11:00 committed by Matthijs Mekking
parent f11ce44818
commit 5eedd365d4

View File

@ -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);