Merge remote-tracking branch 'origin/pr/2391' into development
This commit is contained in:
commit
9f47f82218
3 changed files with 123 additions and 69 deletions
|
@ -3541,6 +3541,15 @@ static int ssl_parse_new_session_ticket( mbedtls_ssl_context *ssl )
|
|||
if( ticket_len == 0 )
|
||||
return( 0 );
|
||||
|
||||
if( ssl->session != NULL && ssl->session->ticket != NULL )
|
||||
{
|
||||
mbedtls_platform_zeroize( ssl->session->ticket,
|
||||
ssl->session->ticket_len );
|
||||
mbedtls_free( ssl->session->ticket );
|
||||
ssl->session->ticket = NULL;
|
||||
ssl->session->ticket_len = 0;
|
||||
}
|
||||
|
||||
mbedtls_platform_zeroize( ssl->session_negotiate->ticket,
|
||||
ssl->session_negotiate->ticket_len );
|
||||
mbedtls_free( ssl->session_negotiate->ticket );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue