Handle missing curve extension correctly in ssl_parse_client_hello()

This commit is contained in:
Paul Bakker 2013-09-26 13:32:43 +02:00
parent 396333e0a3
commit caa3af47c0

View file

@ -1389,7 +1389,8 @@ static int ssl_parse_client_hello( ssl_context *ssl )
#if defined(POLARSSL_ECDH_C) || defined(POLARSSL_ECDSA_C)
if( ssl_ciphersuite_uses_ec( ciphersuite_info ) &&
ssl->handshake->curves[0] == NULL )
( ssl->handshake->curves == NULL ||
ssl->handshake->curves[0] == NULL ) )
continue;
#endif