projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use X509_get0_pubkey where appropriate
[openssl.git]
/
crypto
/
x509
/
x509type.c
diff --git
a/crypto/x509/x509type.c
b/crypto/x509/x509type.c
index a7695cad77208108f56d0745f05743d65450b9d8..a9116e7c7731dcc886403f7e9354caba00531422 100644
(file)
--- a/
crypto/x509/x509type.c
+++ b/
crypto/x509/x509type.c
@@
-71,7
+71,7
@@
int X509_certificate_type(X509 *x, EVP_PKEY *pkey)
return (0);
if (pkey == NULL)
return (0);
if (pkey == NULL)
- pk = X509_get_pubkey(x);
+ pk = X509_get
0
_pubkey(x);
else
pk = pkey;
else
pk = pkey;
@@
-122,7
+122,5
@@
int X509_certificate_type(X509 *x, EVP_PKEY *pkey)
}
}
}
}
- if (pkey == NULL)
- EVP_PKEY_free(pk);
return (ret);
}
return (ret);
}