From: Mark Andrews Date: Tue, 5 Nov 2019 02:36:40 +0000 (+1100) Subject: Insist that kasp is not linked. X-Git-Tag: v9.15.6~26^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5eedd365d41fc8e3e75c8fe63de08eef70d4b0dd;p=thirdparty%2Fbind9.git Insist that kasp is not linked. --- diff --git a/lib/dns/kasp.c b/lib/dns/kasp.c index 66938d91e41..1784b46be0d 100644 --- a/lib/dns/kasp.c +++ b/lib/dns/kasp.c @@ -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);