mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Move misplaced comment
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
@ -255,12 +255,14 @@ int mbedtls_ssl_tls1_3_derive_secret(
|
||||
}
|
||||
else
|
||||
{
|
||||
/* This should never happen since this function is internal
|
||||
* and the code sets `context_already_hashed` correctly.
|
||||
* Let's double-check nonetheless to not run at the risk
|
||||
* of getting a stack overflow. */
|
||||
if( clen > sizeof(hashed_context) )
|
||||
{
|
||||
/* This should never happen since this function is internal
|
||||
* and the code sets `context_already_hashed` correctly.
|
||||
* Let's double-check nonetheless to not run at the risk
|
||||
* of getting a stack overflow. */
|
||||
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
||||
}
|
||||
|
||||
memcpy( hashed_context, ctx, clen );
|
||||
}
|
||||
|
Reference in New Issue
Block a user