summaryrefslogtreecommitdiffstats
path: root/apps/ca.c
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-04-05 00:33:41 +0200
committerMatt Caswell <matt@openssl.org>2016-08-26 14:43:31 +0100
commita404656a8b40d9f1172e5e330f7e2d9d87cabab8 (patch)
tree82daa0e838f60953cd5b0e738438988a15bb2c3c /apps/ca.c
parent50c30153d3fe887d0f6c8c0514bc825c4f3dec6a (diff)
Fix a few leaks in X509_REQ_to_X509.
Fix a possible leak on NETSCAPE_SPKI_verify failure. Backport of 0517538d1a39bc Backport of f6c006ea76304a Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'apps/ca.c')
-rw-r--r--apps/ca.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 8a3c1e56ed..a0ec5838fa 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -2305,6 +2305,7 @@ static int certify_spkac(X509 **xret, char *infile, EVP_PKEY *pkey,
j = NETSCAPE_SPKI_verify(spki, pktmp);
if (j <= 0) {
+ EVP_PKEY_free(pktmp);
BIO_printf(bio_err,
"signature verification failed on SPKAC public key\n");
goto err;