]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Insist that kasp is not linked.
authorMark Andrews <marka@isc.org>
Tue, 5 Nov 2019 02:36:40 +0000 (13:36 +1100)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 6 Nov 2019 21:36:21 +0000 (22:36 +0100)
lib/dns/kasp.c

index 66938d91e410696c3d95e4613fcca1871ca7fd47..1784b46be0d3f326f7e7681d98268316d7d3ea04 100644 (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);