From: Matt Caswell Date: Wed, 18 Apr 2018 10:07:18 +0000 (+0100) Subject: Fix ocsp app exit code X-Git-Tag: OpenSSL_1_1_0i~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2add645dfc364cfc609e6138de1bf43c217bb557;p=openssl 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 Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/5999) --- diff --git a/apps/ocsp.c b/apps/ocsp.c index 4b533348b4..511f9d46f1 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -639,7 +639,6 @@ int ocsp_main(int argc, char **argv) OCSP_response_status_str(i), i); if (ignore_err) goto redo_accept; - ret = 0; goto end; }