WSMP: Make sure our PSID is initialized.
authorGerald Combs <gerald@wireshark.org>
Thu, 6 Dec 2018 19:20:48 +0000 (11:20 -0800)
committerAnders Broman <a.broman58@gmail.com>
Fri, 7 Dec 2018 04:57:00 +0000 (04:57 +0000)
Fixes a scan-build warning.

Change-Id: I5e6b94240e87684fc41ef1a4daf4272d429f00d4
Reviewed-on: https://code.wireshark.org/review/30952
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-wsmp.c

index 8e3600677ae83c0b35b6b0022339a113f9c94ea7..737eb2404878da88ff5bdd73a474a0c5218498a5 100644 (file)
@@ -214,6 +214,7 @@ dissect_wsmp_psid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int o
     guint32 psidLen = 0;
 
     oct = tvb_get_guint8(tvb, offset);
+    *psid = 0;
 
     if ((oct & 0xF0) == 0xF0) {
         psidLen = 255;