+4843. [bug] dnssec-signzone free hashlist on exit. [RT #46791]
+
4842. [bug] Conditionally compile opensslecdsa_link.c to avoid
warnings about unused function. [RT #46790]
}
}
+static void
+hashlist_free(hashlist_t *l) {
+ if (l->hashbuf) {
+ free(l->hashbuf);
+ l->hashbuf = NULL;
+ l->entries = 0;
+ l->length = 0;
+ l->size = 0;
+ }
+}
+
static void
hashlist_add(hashlist_t *l, const unsigned char *hash, size_t len)
{
dns_db_closeversion(gdb, &gversion, ISC_FALSE);
dns_db_detach(&gdb);
+ if (IS_NSEC3)
+ hashlist_free(&hashlist);
+
while (!ISC_LIST_EMPTY(keylist)) {
key = ISC_LIST_HEAD(keylist);
ISC_LIST_UNLINK(keylist, key, link);