Fix a bogus uninit variable warning
authorMatt Caswell <matt@openssl.org>
Wed, 8 Feb 2017 17:16:25 +0000 (17:16 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 14 Feb 2017 13:14:25 +0000 (13:14 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2341)

ssl/statem/extensions.c

index 99326b2b55f58710259fbc587fdc7a95e58f9632..50fd3bb2c50a31397021aa18d8d8a18cae7bac9e 100644 (file)
@@ -1018,7 +1018,7 @@ static int final_key_share(SSL *s, unsigned int context, int sent, int *al)
                        != 0)) {
             const unsigned char *pcurves, *pcurvestmp, *clntcurves;
             size_t num_curves, clnt_num_curves, i;
-            unsigned int group_id;
+            unsigned int group_id = 0;
 
             /* Check if a shared group exists */