mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
Handle missing curve extension correctly in ssl_parse_client_hello()
This commit is contained in:
parent
396333e0a3
commit
caa3af47c0
1 changed files with 2 additions and 1 deletions
|
|
@ -1389,7 +1389,8 @@ static int ssl_parse_client_hello( ssl_context *ssl )
|
||||||
|
|
||||||
#if defined(POLARSSL_ECDH_C) || defined(POLARSSL_ECDSA_C)
|
#if defined(POLARSSL_ECDH_C) || defined(POLARSSL_ECDSA_C)
|
||||||
if( ssl_ciphersuite_uses_ec( ciphersuite_info ) &&
|
if( ssl_ciphersuite_uses_ec( ciphersuite_info ) &&
|
||||||
ssl->handshake->curves[0] == NULL )
|
( ssl->handshake->curves == NULL ||
|
||||||
|
ssl->handshake->curves[0] == NULL ) )
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue