Accept NULL in *_free.
[openssl.git] / crypto / comp / comp_lib.c
index 8ce06951af1b4db34674571283ce426967158f91..dcacb5557d463d75fb34be8a67d5dc2c2f7794ff 100644 (file)
@@ -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);