summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-04-18 11:07:18 +0100
committerMatt Caswell <matt@openssl.org>2018-04-19 08:46:48 +0100
commit4571b3c8e06dc8d9fba003a3c9b9fb680f1bf223 (patch)
tree6e40a042315ad204d1fcfec3c2c8f83ba1befedd /apps
parent67567b221bd06aca1719c926fadc5ce1a0452e9a (diff)
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)
Diffstat (limited to 'apps')
-rw-r--r--apps/ocsp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c
index 654eebcbfc..352bdf14b0 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -787,7 +787,6 @@ int MAIN(int argc, char **argv)
OCSP_response_status_str(i), i);
if (ignore_err)
goto redo_accept;
- ret = 0;
goto end;
}