1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Fix error message and return code

This commit is contained in:
Manuel Pégourié-Gonnard
2014-07-11 16:06:15 +02:00
committed by Paul Bakker
parent 9bfb1226da
commit 805e2300af

View File

@ -2129,8 +2129,8 @@ static int ssl_prepare_handshake_record( ssl_context *ssl )
if( ssl->in_msg[1] != 0 ||
ssl->in_msglen < ssl->in_hslen )
{
SSL_DEBUG_MSG( 1, ( "bad handshake length" ) );
return( POLARSSL_ERR_SSL_INVALID_RECORD );
SSL_DEBUG_MSG( 1, ( "handshake fragmentation not supported" ) );
return( POLARSSL_ERR_SSL_FEATURE_UNAVAILABLE );
}
if( ssl->state != SSL_HANDSHAKE_OVER )