Skip to content

Commit

Permalink
Fix Coverity 1493746: constant expression result
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from openssl#17034)
  • Loading branch information
paulidale authored and rkhaldi committed Nov 21, 2021
1 parent 66fc9c1 commit fe026f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/stack/stack.c
Expand Up @@ -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;
Expand Down

0 comments on commit fe026f2

Please sign in to comment.