mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 10:35:40 +00:00
Fix error message and return code
This commit is contained in:
parent
9bfb1226da
commit
805e2300af
|
@ -2129,8 +2129,8 @@ static int ssl_prepare_handshake_record( ssl_context *ssl )
|
||||||
if( ssl->in_msg[1] != 0 ||
|
if( ssl->in_msg[1] != 0 ||
|
||||||
ssl->in_msglen < ssl->in_hslen )
|
ssl->in_msglen < ssl->in_hslen )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "bad handshake length" ) );
|
SSL_DEBUG_MSG( 1, ( "handshake fragmentation not supported" ) );
|
||||||
return( POLARSSL_ERR_SSL_INVALID_RECORD );
|
return( POLARSSL_ERR_SSL_FEATURE_UNAVAILABLE );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ssl->state != SSL_HANDSHAKE_OVER )
|
if( ssl->state != SSL_HANDSHAKE_OVER )
|
||||||
|
|
Loading…
Reference in a new issue