aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/x_pubkey.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-03-22 13:50:23 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-03-22 13:50:23 +0000
commite77066ea0a1a339a22bd5226eb08f139f67e96fe (patch)
treed71e9ef514b5cea0512376b563665c2949253b33 /crypto/asn1/x_pubkey.c
parentd12cd419009ed7b57245ac9ba65df06705aa259f (diff)
downloadopenssl-e77066ea0a1a339a22bd5226eb08f139f67e96fe.zip
openssl-e77066ea0a1a339a22bd5226eb08f139f67e96fe.tar.gz
openssl-e77066ea0a1a339a22bd5226eb08f139f67e96fe.tar.bz2
Fix a memory leak in PKCS12_parse.
Don't copy private key to X509 etc public key structures. Fix for warning.
Diffstat (limited to 'crypto/asn1/x_pubkey.c')
-rw-r--r--crypto/asn1/x_pubkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/x_pubkey.c b/crypto/asn1/x_pubkey.c
index 81e9815..7a05d57 100644
--- a/crypto/asn1/x_pubkey.c
+++ b/crypto/asn1/x_pubkey.c
@@ -183,8 +183,10 @@ int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
Free(s);
+#if 0
CRYPTO_add(&pkey->references,1,CRYPTO_LOCK_EVP_PKEY);
pk->pkey=pkey;
+#endif
if (*x != NULL)
X509_PUBKEY_free(*x);