Skip to content

Commit

Permalink
apps/ocsp.c: Add missing test if make_ocsp_response failed
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #19660)

(cherry picked from commit 93e1271)
  • Loading branch information
gilweis authored and t8m committed Nov 15, 2022
1 parent 3d004ce commit 2f3f0b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/ocsp.c
Expand Up @@ -724,6 +724,8 @@ int ocsp_main(int argc, char **argv)
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) {
Expand Down

0 comments on commit 2f3f0b0

Please sign in to comment.