mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-01 09:10:03 +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;
|
int ret;
|
||||||
mbedtls_ssl_session session;
|
mbedtls_ssl_session session;
|
||||||
|
|
||||||
|
mbedtls_ssl_session_init( &session );
|
||||||
|
|
||||||
if( ssl->conf->f_ticket_parse == NULL ||
|
if( ssl->conf->f_ticket_parse == NULL ||
|
||||||
ssl->conf->f_ticket_write == NULL )
|
ssl->conf->f_ticket_write == NULL )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user