Fix uninitialized access
Found using Codenomicon Defensics.
This commit is contained in:
parent
ac5361f7dc
commit
bae389b4d4
1 changed files with 2 additions and 0 deletions
|
@ -410,6 +410,8 @@ static int ssl_parse_session_ticket_ext( mbedtls_ssl_context *ssl,
|
|||
int ret;
|
||||
mbedtls_ssl_session session;
|
||||
|
||||
mbedtls_ssl_session_init( &session );
|
||||
|
||||
if( ssl->conf->f_ticket_parse == NULL ||
|
||||
ssl->conf->f_ticket_write == NULL )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue