ssl_tls13_generate_and_write_ecdh_key_exchange(): remove redundant check
This check can be removed as if the buffer is too small for the key, then export will fail. Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
c82f62e3a5
commit
a9f9335ee9
1 changed files with 0 additions and 6 deletions
|
@ -262,12 +262,6 @@ static int ssl_tls13_generate_and_write_ecdh_key_exchange(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( own_pubkey_len > (size_t)( end - buf ) )
|
|
||||||
{
|
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "No space in the buffer for ECDH public key." ) );
|
|
||||||
return( MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL );
|
|
||||||
}
|
|
||||||
|
|
||||||
*out_len = own_pubkey_len;
|
*out_len = own_pubkey_len;
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue