mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-28 18:32:56 +00:00
ssl_async_resume: free the operation context on error
This commit is contained in:
parent
276b9a650c
commit
3cde2fca53
@ -1077,6 +1077,7 @@ static int ssl_async_resume( mbedtls_ssl_context *ssl,
|
||||
{
|
||||
mbedtls_printf( "Async resume callback: %s done but injected error\n",
|
||||
op_name );
|
||||
mbedtls_free( ctx );
|
||||
return( MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user