projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6176df9
)
Do not free p if it hasn't been used yet.
author
Richard Levitte
<levitte@openssl.org>
Sat, 20 Apr 2002 10:19:20 +0000
(10:19 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Sat, 20 Apr 2002 10:19:20 +0000
(10:19 +0000)
Notified by Bernd Matthes <bernd.matthes@gemplus.com>
crypto/asn1/x_pubkey.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/x_pubkey.c
b/crypto/asn1/x_pubkey.c
index a34f473cfee8d9a1103099b498c0c3020f1a4a8f..f1ddbf044f51bef384d60fde877e915e83a2feb0 100644
(file)
--- a/
crypto/asn1/x_pubkey.c
+++ b/
crypto/asn1/x_pubkey.c
@@
-85,7
+85,7
@@
int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
X509_PUBKEY *pk;
X509_ALGOR *a;
ASN1_OBJECT *o;
- unsigned char *s,*p;
+ unsigned char *s,*p
= NULL
;
int i;
if (x == NULL) return(0);
@@
-142,7
+142,6
@@
int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
if ((a->parameter = ASN1_TYPE_new()) == NULL)
{
X509err(X509_F_X509_PUBKEY_SET, ERR_R_ASN1_LIB);
- OPENSSL_free(p);
goto err;
}