From e03ddfae7ea7c27193d3f7c0eaa1d01704647d77 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Thu, 7 Jan 1999 19:15:59 +0000 Subject: Accept NULL in *_free. --- crypto/comp/comp_lib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crypto/comp') diff --git a/crypto/comp/comp_lib.c b/crypto/comp/comp_lib.c index 8ce06951af..dcacb5557d 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); -- cgit v1.2.3