Explorar el Código

Fix Coverity 1493746: constant expression result

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17034)
Pauli hace 2 años
padre
commit
7cc5738a56
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      crypto/stack/stack.c

+ 1 - 1
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;