From 92d86b387eadf3ab51b2e996cb8f8cb4ed3e03b7 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Fri, 16 Dec 2022 19:30:29 +0100 Subject: 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 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19929) (cherry picked from commit 42061268ee8f9ae0555d522870740fc91b744f4f) --- test/exptest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/exptest.c') diff --git a/test/exptest.c b/test/exptest.c index f0d8693130..1937a12c1c 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()) -- cgit v1.2.3