From 313fce7b61ecaf5879cf84b256bdd0964134836e Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Wed, 4 Apr 2007 14:59:20 +0000 Subject: [PATCH] Don't free a NULL. Coverity ID 112. --- apps/ocsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ocsp.c b/apps/ocsp.c index 6b7e85de36..23c7686860 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -1337,8 +1337,8 @@ static OCSP_RESPONSE *query_responder(BIO *err, BIO *cbio, char *path, } err: - - OCSP_REQ_CTX_free(ctx); + if (ctx) + OCSP_REQ_CTX_free(ctx); return rsp; } -- 2.25.1