Fix coverity-reported errors in ocspapitest
authorBenjamin Kaduk <bkaduk@akamai.com>
Thu, 7 Dec 2017 20:14:47 +0000 (14:14 -0600)
committerBen Kaduk <kaduk@mit.edu>
Wed, 13 Dec 2017 01:08:22 +0000 (19:08 -0600)
commitaf10989dd51cac1068a0451350f935fcdd54c8d3
tree12f64b5c5b358716717cf424b94ba8463e9fd2b0
parent1b7e60bf2e4ff225ca649206ac9f1169ee45ee13
Fix coverity-reported errors in ocspapitest

Avoid memory leaks in error paths, and correctly apply
parentheses to function calls in a long if-chain.

Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit b6306d8049b04dca7fa738a86c892c43ba6a5fc4)

(Merged from https://github.com/openssl/openssl/pull/4723)
test/ocspapitest.c