diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-04-05 14:06:28 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-04-05 14:06:39 +0100 |
commit | 6e863f07376e1c8ae7c89477234db50838784d99 (patch) | |
tree | b38390c5d36377102329882b2481702d6b89f91d /apps/ca.c | |
parent | 453dfd8d5ee0893146e0fb61a5978ab59ba95c01 (diff) |
fix memory leak in ca
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/ca.c')
-rw-r--r-- | apps/ca.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1788,7 +1788,7 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, if (!X509_set_subject_name(ret, subject)) goto end; - pktmp = X509_REQ_get_pubkey(req); + pktmp = X509_REQ_get0_pubkey(req); i = X509_set_pubkey(ret, pktmp); if (!i) goto end; |