diff options
-rw-r--r-- | apps/ocsp.c | 4 |
1 files 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; } |