From 0a20171d520930fcc8eaad961d58cd73d28d7efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 23 Aug 2013 16:25:16 +0200 Subject: [PATCH] Fix compiler warning from gcc -Os --- library/ssl_srv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/ssl_srv.c b/library/ssl_srv.c index bb3fec425..bfbf2cbb7 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -180,6 +180,8 @@ static int ssl_write_ticket( ssl_context *ssl, size_t *tlen ) unsigned char iv[16]; size_t clear_len, enc_len, pad_len, i; + *tlen = 0; + if( ssl->ticket_keys == NULL ) return( POLARSSL_ERR_SSL_BAD_INPUT_DATA );