diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-03-22 13:50:23 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-03-22 13:50:23 +0000 |
commit | e77066ea0a1a339a22bd5226eb08f139f67e96fe (patch) | |
tree | d71e9ef514b5cea0512376b563665c2949253b33 /crypto/asn1/x_pubkey.c | |
parent | d12cd419009ed7b57245ac9ba65df06705aa259f (diff) | |
download | openssl-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.c | 2 |
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); |