[openssl] openssl-3.0 update
tomas at openssl.org
tomas at openssl.org
Fri Oct 8 09:47:45 UTC 2021
The branch openssl-3.0 has been updated
via 4c09066ca62130c3a80365b1f94ade6c32b5d13b (commit)
from 31ece182eea314ffe44dccb7d413ba16f29dc9ff (commit)
- Log -----------------------------------------------------------------
commit 4c09066ca62130c3a80365b1f94ade6c32b5d13b
Author: PW Hu <jlu.hpw at foxmail.com>
Date: Thu Oct 7 11:50:59 2021 +0800
Fix unsafe BIO_get_md_ctx check
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16768)
(cherry picked from commit 59a3e7b29574ff45f62e825f6e9923f45060f142)
-----------------------------------------------------------------------
Summary of changes:
apps/dgst.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/dgst.c b/apps/dgst.c
index 36a8c6fb08..bd23b76996 100644
--- a/apps/dgst.c
+++ b/apps/dgst.c
@@ -335,7 +335,7 @@ int dgst_main(int argc, char **argv)
EVP_PKEY_CTX *pctx = NULL;
int res;
- if (!BIO_get_md_ctx(bmd, &mctx)) {
+ if (BIO_get_md_ctx(bmd, &mctx) <= 0) {
BIO_printf(bio_err, "Error getting context\n");
goto end;
}
@@ -362,7 +362,7 @@ int dgst_main(int argc, char **argv)
/* we use md as a filter, reading from 'in' */
else {
EVP_MD_CTX *mctx = NULL;
- if (!BIO_get_md_ctx(bmd, &mctx)) {
+ if (BIO_get_md_ctx(bmd, &mctx) <= 0) {
BIO_printf(bio_err, "Error getting context\n");
goto end;
}
More information about the openssl-commits
mailing list