summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2021-02-07 00:56:07 +0000
committertobhe <tobhe@cvs.openbsd.org>2021-02-07 00:56:07 +0000
commitdf38a78b9945c0b211f82136f3fd583251e5920e (patch)
treeebbb110e599b7a3e20b964f6cfe4182ffb6fd25b /sbin/iked
parent5949e7acbee84b4175764b744086fe092ce874f4 (diff)
Free X509_STOREs in ca_shutdown().
Diffstat (limited to 'sbin/iked')
-rw-r--r--sbin/iked/ca.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c
index 38c0e70ed19..be710c7398e 100644
--- a/sbin/iked/ca.c
+++ b/sbin/iked/ca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ca.c,v 1.76 2021/02/04 19:59:15 tobhe Exp $ */
+/* $OpenBSD: ca.c,v 1.77 2021/02/07 00:56:06 tobhe Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -131,6 +131,8 @@ ca_shutdown(struct privsep_proc *p)
ibuf_release(env->sc_certreq);
if ((store = env->sc_priv) == NULL)
return;
+ X509_STORE_free(store->ca_cas);
+ X509_STORE_free(store->ca_certs);
ibuf_release(store->ca_pubkey.id_buf);
ibuf_release(store->ca_privkey.id_buf);
free(store);