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…
Reference in a new issue