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 6b7e85de36b5214933f3ba6aa35ac5d4278aefb3..23c76868608537ec8b1ebcf4567957d53e4354e6 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;
        }