summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2022-12-16 19:30:29 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2022-12-21 16:31:15 +0100
commit42061268ee8f9ae0555d522870740fc91b744f4f (patch)
tree67ad96ee24e0ba9a595a23296834a375c0276e57 /test
parentec3342e76f31b2d5146313fd03f0c8d65977c799 (diff)
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)
Diffstat (limited to 'test')
-rw-r--r--test/exptest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/exptest.c b/test/exptest.c
index dc27a5ddc0..b1c6f4bbe1 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;
BN_MONT_CTX *mont = NULL;
if (!TEST_ptr(m = BN_new())