Fix uninitialized access

Found using Codenomicon Defensics.
This commit is contained in:
Manuel Pégourié-Gonnard 2015-06-24 10:45:58 +02:00
parent ac5361f7dc
commit bae389b4d4

View File

@ -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 )
{ {