From 5c1f0326531102ec20f936408cc12233bf61ee32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 23 Jun 2014 14:24:43 +0200 Subject: [PATCH] Abort handshake if no point format in common --- library/ssl_cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 608140fe9..7b9b6e91b 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -816,7 +816,8 @@ static int ssl_parse_supported_point_formats_ext( ssl_context *ssl, p++; } - return( 0 ); + SSL_DEBUG_MSG( 1, ( "no point format in common" ) ); + return( POLARSSL_ERR_SSL_BAD_HS_SERVER_HELLO ); } #endif /* POLARSSL_ECDH_C || POLARSSL_ECDSA_C */