From bae389b4d46dc2c57760444f6dd6bf93246b1211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 24 Jun 2015 10:45:58 +0200 Subject: [PATCH] Fix uninitialized access Found using Codenomicon Defensics. --- library/ssl_srv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 09431ce628..c7fb0abdb3 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -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 ) {