Commit c324ecfb authored by Matt Caswell's avatar Matt Caswell
Browse files

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: default avatarRich Salz <rsalz@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5998)
parent 6e07834c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -697,11 +697,9 @@ redo_accept:
    if (i != OCSP_RESPONSE_STATUS_SUCCESSFUL) {
        BIO_printf(out, "Responder Error: %s (%d)\n",
                   OCSP_response_status_str(i), i);
        if (!ignore_err) {
                ret = 0;
        if (!ignore_err)
                goto end;
    }
    }

    if (resp_text)
        OCSP_RESPONSE_print(out, resp, 0);