summaryrefslogtreecommitdiffstats
path: root/apps/ocsp.c
diff options
context:
space:
mode:
authorGW <gil.weisbord@gmail.com>2022-11-12 08:51:15 +0200
committerTomas Mraz <tomas@openssl.org>2022-11-15 11:59:30 +0100
commit93e1271eedfe3af0a1c1b14d26899d2c8bde98e9 (patch)
tree795bfc8209272b3d16cf171421093ad1e8479e9d /apps/ocsp.c
parentc9a542e41837ea65671dcd75c448d7113d34a4fd (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)
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r--apps/ocsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c
index 380c6b325f..fb09036e77 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -730,6 +730,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) {