projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c209a35
)
allow EVP_PKEY_CTX_free(NULL)
author
Nils Larsch
<nils@openssl.org>
Mon, 26 Feb 2007 18:32:53 +0000
(18:32 +0000)
committer
Nils Larsch
<nils@openssl.org>
Mon, 26 Feb 2007 18:32:53 +0000
(18:32 +0000)
crypto/evp/pmeth_lib.c
patch
|
blob
|
history
diff --git
a/crypto/evp/pmeth_lib.c
b/crypto/evp/pmeth_lib.c
index 5b8000d691c2f4667b9d20a94457eb0f6d5a5086..500aad967b896578cde12c0f8c85872fed8e23af 100644
(file)
--- a/
crypto/evp/pmeth_lib.c
+++ b/
crypto/evp/pmeth_lib.c
@@
-289,6
+289,8
@@
int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth)
void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx)
{
+ if (ctx == NULL)
+ return;
if (ctx->pmeth && ctx->pmeth->cleanup)
ctx->pmeth->cleanup(ctx);
if (ctx->pkey)