Fix heartbeat compilation error
authorMatt Caswell <matt@openssl.org>
Wed, 28 Sep 2016 11:03:30 +0000 (12:03 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 29 Sep 2016 09:06:46 +0000 (10:06 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/t1_lib.c

index 0a73eed43490e779198e4413a54bcb6221d5da7c..501bf24fb16db311f93f7efe1c7ee4b6ad772285 100644 (file)
@@ -1505,6 +1505,7 @@ int ssl_add_serverhello_tlsext(SSL *s, WPACKET *pkt, int *al)
 #ifndef OPENSSL_NO_HEARTBEATS
     /* Add Heartbeat extension if we've received one */
     if (SSL_IS_DTLS(s) && (s->tlsext_heartbeat & SSL_DTLSEXT_HB_ENABLED)) {
+        unsigned int mode;
         /*-
          * Set mode:
          * 1: peer may send requests