diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-04-05 00:33:41 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-26 14:43:31 +0100 |
commit | a404656a8b40d9f1172e5e330f7e2d9d87cabab8 (patch) | |
tree | 82daa0e838f60953cd5b0e738438988a15bb2c3c /apps/ca.c | |
parent | 50c30153d3fe887d0f6c8c0514bc825c4f3dec6a (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |