Don't free a NULL. Coverity ID 112.
authorBen Laurie <ben@openssl.org>
Wed, 4 Apr 2007 14:59:20 +0000 (14:59 +0000)
committerBen Laurie <ben@openssl.org>
Wed, 4 Apr 2007 14:59:20 +0000 (14:59 +0000)
apps/ocsp.c

index 6b7e85d..23c7686 100644 (file)
@@ -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;
        }