mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 10:35:40 +00:00
Merge pull request #3310 from sander-visser/fix-wrong-return-with-ssl-hw-accel-if-init-fails
Expose SSL HW record acceleration error.
This commit is contained in:
commit
f862d73df0
3
ChangeLog.d/fix-masked-hw-record-init-error.txt
Normal file
3
ChangeLog.d/fix-masked-hw-record-init-error.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Bugfix
|
||||||
|
* Fix issue with a detected HW accelerated record error not being exposed
|
||||||
|
due to shadowed variable. Contributed by Sander Visser in #3310.
|
|
@ -1175,7 +1175,7 @@ static int ssl_populate_transform( mbedtls_ssl_transform *transform,
|
||||||
#if defined(MBEDTLS_SSL_HW_RECORD_ACCEL)
|
#if defined(MBEDTLS_SSL_HW_RECORD_ACCEL)
|
||||||
if( mbedtls_ssl_hw_record_init != NULL )
|
if( mbedtls_ssl_hw_record_init != NULL )
|
||||||
{
|
{
|
||||||
int ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 2, ( "going for mbedtls_ssl_hw_record_init()" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 2, ( "going for mbedtls_ssl_hw_record_init()" ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue