Ensure the age_add variable is properly initialised
authorMatt Caswell <matt@openssl.org>
Fri, 20 Jan 2017 13:50:47 +0000 (13:50 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 30 Jan 2017 10:18:23 +0000 (10:18 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2259)

ssl/statem/statem_clnt.c

index 3695c7568c4cc99e3c140923aff361635c8bef38..cd871940ee871c9c9846e25f455ef8959c2c9d02 100644 (file)
@@ -2212,7 +2212,7 @@ MSG_PROCESS_RETURN tls_process_new_session_ticket(SSL *s, PACKET *pkt)
 {
     int al;
     unsigned int ticklen;
-    unsigned long ticket_lifetime_hint, age_add;
+    unsigned long ticket_lifetime_hint, age_add = 0;
     unsigned int sess_len;
     RAW_EXTENSION *exts = NULL;