Fix ocsp app exit code
authorMatt Caswell <matt@openssl.org>
Wed, 18 Apr 2018 10:07:18 +0000 (11:07 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 19 Apr 2018 07:46:48 +0000 (08:46 +0100)
commit4571b3c8e06dc8d9fba003a3c9b9fb680f1bf223
tree6e40a042315ad204d1fcfec3c2c8f83ba1befedd
parent67567b221bd06aca1719c926fadc5ce1a0452e9a
Fix ocsp app exit code

If we run the ocsp command line app and the responder returns a
non-successful status code then the app should exit with a failure code.

Based on an original patch by Tatsuhiro Tsujikawa.

Fixes #2387

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5999)

(cherry picked from commit 2add645dfc364cfc609e6138de1bf43c217bb557)
apps/ocsp.c