From: Pauli Date: Sun, 14 Nov 2021 22:35:27 +0000 (+1000) Subject: Fix Coverity 1493746: constant expression result X-Git-Tag: openssl-3.2.0-alpha1~3327 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cc5738a561933e38ad0e724f4df7b503c3c8e73;p=thirdparty%2Fopenssl.git Fix Coverity 1493746: constant expression result Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17034) --- 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;