mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 04:15:29 +00:00
Catch errors while building SSL test transforms
This commit is contained in:
parent
afc528ad56
commit
1acadb77cb
|
@ -13,6 +13,7 @@
|
||||||
{ \
|
{ \
|
||||||
if( !( x ) ) \
|
if( !( x ) ) \
|
||||||
{ \
|
{ \
|
||||||
|
ret = -1; \
|
||||||
goto cleanup; \
|
goto cleanup; \
|
||||||
} \
|
} \
|
||||||
} while( 0 )
|
} while( 0 )
|
||||||
|
@ -24,6 +25,7 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
|
||||||
int etm, int tag_mode, int ver )
|
int etm, int tag_mode, int ver )
|
||||||
{
|
{
|
||||||
mbedtls_cipher_info_t const *cipher_info;
|
mbedtls_cipher_info_t const *cipher_info;
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
size_t keylen, maclen, ivlen;
|
size_t keylen, maclen, ivlen;
|
||||||
unsigned char *key0 = NULL, *key1 = NULL;
|
unsigned char *key0 = NULL, *key1 = NULL;
|
||||||
|
@ -228,7 +230,7 @@ cleanup:
|
||||||
mbedtls_free( key0 );
|
mbedtls_free( key0 );
|
||||||
mbedtls_free( key1 );
|
mbedtls_free( key1 );
|
||||||
|
|
||||||
return( 0 );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
Loading…
Reference in a new issue