From 7cc5738a561933e38ad0e724f4df7b503c3c8e73 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 15 Nov 2021 08:35:27 +1000 Subject: [PATCH] Fix Coverity 1493746: constant expression result Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17034) --- crypto/stack/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index c06af85e33f..01fad46d4a1 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -168,7 +168,7 @@ static ossl_inline int compute_growth(int target, int current) current = safe_muldiv_int(current, 8, 5, &err); if (err) return 0; - if (current > max_nodes) + if (current >= max_nodes) current = max_nodes; } return current; -- 2.47.2