[openssl-commits] [openssl] master update
Paul I. Dale
pauli at openssl.org
Sun Sep 2 23:57:48 UTC 2018
The branch master has been updated
via a8d3dbe19b5c7e5b828792bfe7dcf8dc6d225c62 (commit)
from 59701e6363531cddef5b2114c0127b8453deb1f3 (commit)
- Log -----------------------------------------------------------------
commit a8d3dbe19b5c7e5b828792bfe7dcf8dc6d225c62
Author: Pauli <paul.dale at oracle.com>
Date: Mon Sep 3 07:29:45 2018 +1000
Check for a failure return from EVP_MD_CTX_new() in OCSP_basic_sign().
Reviewed-by: Tim Hudson <tjh at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7087)
-----------------------------------------------------------------------
Summary of changes:
crypto/ocsp/ocsp_srv.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/crypto/ocsp/ocsp_srv.c b/crypto/ocsp/ocsp_srv.c
index eff6ddb..6bd6f7b 100644
--- a/crypto/ocsp/ocsp_srv.c
+++ b/crypto/ocsp/ocsp_srv.c
@@ -237,6 +237,9 @@ int OCSP_basic_sign(OCSP_BASICRESP *brsp,
EVP_PKEY_CTX *pkctx = NULL;
int i;
+ if (ctx == NULL)
+ return 0;
+
if (!EVP_DigestSignInit(ctx, &pkctx, dgst, NULL, key)) {
EVP_MD_CTX_free(ctx);
return 0;
More information about the openssl-commits
mailing list