Restructure ssl_handshake_init() and small fixes
This commit is contained in:
parent
a317a98221
commit
accaffe2c3
3 changed files with 96 additions and 47 deletions
|
@ -343,6 +343,8 @@ static int ssl_parse_ticket( ssl_context *ssl,
|
|||
|
||||
ssl_session_free( ssl->session_negotiate );
|
||||
memcpy( ssl->session_negotiate, &session, sizeof( ssl_session ) );
|
||||
|
||||
/* Zeroize instead of free as we copied the content */
|
||||
polarssl_zeroize( &session, sizeof( ssl_session ) );
|
||||
|
||||
return( 0 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue