aboutsummaryrefslogtreecommitdiff
path: root/crypto/comp
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-01-07 19:15:59 +0000
committerBen Laurie <ben@openssl.org>1999-01-07 19:15:59 +0000
commite03ddfae7ea7c27193d3f7c0eaa1d01704647d77 (patch)
tree7cf2e8444b222a3a52c4735e0415916bb81c4494 /crypto/comp
parent6fa89f94c4452be54577eb071891d77c9e2abe16 (diff)
downloadopenssl-e03ddfae7ea7c27193d3f7c0eaa1d01704647d77.zip
openssl-e03ddfae7ea7c27193d3f7c0eaa1d01704647d77.tar.gz
openssl-e03ddfae7ea7c27193d3f7c0eaa1d01704647d77.tar.bz2
Accept NULL in *_free.
Diffstat (limited to 'crypto/comp')
-rw-r--r--crypto/comp/comp_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/comp/comp_lib.c b/crypto/comp/comp_lib.c
index 8ce0695..dcacb55 100644
--- a/crypto/comp/comp_lib.c
+++ b/crypto/comp/comp_lib.c
@@ -33,6 +33,9 @@ COMP_CTX *ctx;
{
/* CRYPTO_free_ex_data(rsa_meth,(char *)ctx,&ctx->ex_data); */
+ if(ctx == NULL)
+ return;
+
if (ctx->meth->finish != NULL)
ctx->meth->finish(ctx);