mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
Fix uninitialized access
Found using Codenomicon Defensics.
This commit is contained in:
parent
ac5361f7dc
commit
bae389b4d4
@ -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…
Reference in New Issue
Block a user