1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

Merge pull request #7631 from tom-daubney-arm/remove_surplus_loop_condition_issue_7529

Remove extraneous check in for loop condition
This commit is contained in:
Gilles Peskine
2023-05-24 20:24:28 +02:00
committed by GitHub

View File

@@ -1155,8 +1155,7 @@ static int ssl_handshake_init(mbedtls_ssl_context *ssl)
size_t length; size_t length;
const mbedtls_ecp_group_id *curve_list = ssl->conf->curve_list; const mbedtls_ecp_group_id *curve_list = ssl->conf->curve_list;
for (length = 0; (curve_list[length] != MBEDTLS_ECP_DP_NONE) && for (length = 0; (curve_list[length] != MBEDTLS_ECP_DP_NONE); length++) {
(length < MBEDTLS_ECP_DP_MAX); length++) {
} }
/* Leave room for zero termination */ /* Leave room for zero termination */