mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-24 01:43:33 +00:00
Remove extraneous check in for loop condition
Issue 7529 uncovered an unrequired check in a for loop condition in ssl_tls.c. This commit removes said check. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
7f97675b64
commit
850a0797ca
@ -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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user