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>
Fri, 8 Dec 2017 15:16:36 +0000 (09:16 -0600)
commitb6306d8049b04dca7fa738a86c892c43ba6a5fc4
tree75843dafe32fdf333b2a70ea7f63f0c6e0d7bdeb
parent0488c0bbbe87eee3a800797b91350c653e9f1711
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>
(Merged from https://github.com/openssl/openssl/pull/4873)
test/ocspapitest.c