[openssl] openssl-3.0 update
matthias.st.pierre at ncp-e.com
matthias.st.pierre at ncp-e.com
Sun Nov 7 21:07:54 UTC 2021
The branch openssl-3.0 has been updated
via 0cb66d6bfeb7685f5776e1a93d716024fe678018 (commit)
from 51f416d7c90e0eb04f9b0c5be189426e27f5779e (commit)
- Log -----------------------------------------------------------------
commit 0cb66d6bfeb7685f5776e1a93d716024fe678018
Author: Pauli <pauli at openssl.org>
Date: Thu Nov 4 08:23:32 2021 +1000
avoid a NULL dereference when getting digest
Fixes #16961
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/16969)
(cherry picked from commit ab547fc005307ecf48451638e947cdabca147159)
-----------------------------------------------------------------------
Summary of changes:
crypto/evp/evp_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/evp/evp_lib.c b/crypto/evp/evp_lib.c
index 64d7fb046d..24092cfd5b 100644
--- a/crypto/evp/evp_lib.c
+++ b/crypto/evp/evp_lib.c
@@ -999,7 +999,7 @@ EVP_MD *EVP_MD_CTX_get1_md(EVP_MD_CTX *ctx)
if (ctx == NULL)
return NULL;
md = (EVP_MD *)ctx->reqdigest;
- if (!EVP_MD_up_ref(md))
+ if (md == NULL || !EVP_MD_up_ref(md))
return NULL;
return md;
}
More information about the openssl-commits
mailing list