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:14 +0000 (08:46 +0100)
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)

apps/ocsp.c

index 4b533348b43bded14cae43f3622c63a80d8a81ef..511f9d46f1b74698b965e2de282f10e87c73a81f 100644 (file)
@@ -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;
     }