diff options
author | GW <gil.weisbord@gmail.com> | 2022-11-12 08:51:15 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-15 12:00:32 +0100 |
commit | 2f3f0b0c4202ebf08c4b1994889292499dd0bd6f (patch) | |
tree | b98cc5e4e325fd566c45bf6f216b4e5d2dd426ad /apps | |
parent | 3d004cefec5135a3b080dc898d7f7d5452ef309f (diff) |
apps/ocsp.c: Add missing test if make_ocsp_response failed
CLA: trivial
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19660)
(cherry picked from commit 93e1271eedfe3af0a1c1b14d26899d2c8bde98e9)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ocsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c index 50bf55f338..821e224c6c 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -724,6 +724,8 @@ redo_accept: make_ocsp_response(bio_err, &resp, req, rdb, rca_cert, rsigner, rkey, rsign_md, rsign_sigopts, rother, rflags, nmin, ndays, badsig, resp_certid_md); + if (resp == NULL) + goto end; if (cbio != NULL) send_ocsp_response(cbio, resp); } else if (host != NULL) { |