mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 04:35:44 +01:00
Use Platform fault when double check fails
This commit is contained in:
parent
f5b6af01d3
commit
88db2ae9a0
@ -4617,10 +4617,10 @@ int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush )
|
||||
encrypted_fi = 1;
|
||||
}
|
||||
|
||||
//Double check to ensure the encryption has been done
|
||||
/* Double check to ensure the encryption has been done */
|
||||
if( ssl->transform_out != NULL && encrypted_fi == 0 )
|
||||
{
|
||||
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
||||
return( MBEDTLS_ERR_PLATFORM_FAULT_DETECTED );
|
||||
}
|
||||
|
||||
protected_record_size = len + mbedtls_ssl_out_hdr_len( ssl );
|
||||
|
Loading…
Reference in New Issue
Block a user