diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2022-12-16 19:30:29 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2022-12-21 16:36:14 +0100 |
commit | ed8af0502167c80ba70522d88e719f874e24ebfd (patch) | |
tree | 106cfb381465e955201221c7f1efef76cc5bb112 | |
parent | 68cec7e9d31fdf05b82a627a82398d8cfb0b915c (diff) | |
download | openssl-new-ed8af0502167c80ba70522d88e719f874e24ebfd.tar.gz |
Fix a logic flaw in test_mod_exp_zero
Due to the logic flaw, possible test failures
in this test case might be ignored.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19929)
(cherry picked from commit 42061268ee8f9ae0555d522870740fc91b744f4f)
-rw-r--r-- | test/exptest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/exptest.c b/test/exptest.c index cde4d6bc45..a327773ec4 100644 --- a/test/exptest.c +++ b/test/exptest.c @@ -49,7 +49,7 @@ static int test_mod_exp_zero(void) BIGNUM *r = NULL; BN_ULONG one_word = 1; BN_CTX *ctx = BN_CTX_new(); - int ret = 1, failed = 0; + int ret = 0, failed = 0; if (!TEST_ptr(m = BN_new()) || !TEST_ptr(a = BN_new()) |