Ubuntu 14.04 complains about unititialized variable proto_name_length
authorAndersBroman <anders.broman@ericsson.com>
Tue, 7 Feb 2017 15:29:11 +0000 (16:29 +0100)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 7 Feb 2017 17:23:25 +0000 (17:23 +0000)
Change-Id: I325e98c9eeafaa53b5f757f4b8e5e903a31e1cc2
Reviewed-on: https://code.wireshark.org/review/19987
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
epan/dissectors/packet-ssl-utils.c

index 75fc5b491ac5ccae332b5e1d8ebfc3ab389fc227..7ac2693e001d47e0995d91540bdfb2dea5405442 100644 (file)
@@ -5824,7 +5824,7 @@ ssl_dissect_hnd_hello_ext_alpn(ssl_common_dissect_t *hf, tvbuff_t *tvb,
     proto_item *ti;
     guint32     next_offset, alpn_length, name_length;
     guint8     *proto_name = NULL;
-    guint32     proto_name_length;
+    guint32     proto_name_length = 0;
 
     /* ProtocolName protocol_name_list<2..2^16-1> */
     if (!ssl_add_vector(hf, tvb, pinfo, tree, offset, offset_end, &alpn_length,