From: GW Date: Sat, 12 Nov 2022 06:51:15 +0000 (+0200) Subject: apps/ocsp.c: Add missing test if make_ocsp_response failed X-Git-Tag: openssl-3.2.0-alpha1~1732 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93e1271eedfe3af0a1c1b14d26899d2c8bde98e9;p=thirdparty%2Fopenssl.git apps/ocsp.c: Add missing test if make_ocsp_response failed CLA: trivial Reviewed-by: Dmitry Belyavskiy Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19660) --- diff --git a/apps/ocsp.c b/apps/ocsp.c index 380c6b325f3..fb09036e77a 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) {