commit | caa3af47c0242ebe7da1bb5bb2be13ef893fab8f | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Sep 26 13:32:43 2013 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Sat Sep 28 11:08:43 2013 +0200 |
tree | 1ca191548578265e5949dc0882af600a2151c98b | |
parent | 396333e0a3fec1259a5813561cc3221957725577 [diff] |
Handle missing curve extension correctly in ssl_parse_client_hello()
diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 960906b..15d14fa 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c
@@ -1389,7 +1389,8 @@ #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