diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-10-22 11:12:41 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-10-22 11:12:41 +0000 |
commit | 3867c85ae9387e7f3e3fd124a2e1769b016d56e8 (patch) | |
tree | ad0df6d4da7c8732a577fd94f4ddb4b9aa672db8 /epan | |
parent | 6e67565b2df3fe252da31e80a044dbc9cafe99f1 (diff) | |
download | wireshark-3867c85ae9387e7f3e3fd124a2e1769b016d56e8.tar.gz |
From Roland Knall via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9244 :
Fix error: 'wsmlength' may be used uninitialized in this function
svn path=/trunk/; revision=52757
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-wsmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-wsmp.c b/epan/dissectors/packet-wsmp.c index d6125de236..de264103cc 100644 --- a/epan/dissectors/packet-wsmp.c +++ b/epan/dissectors/packet-wsmp.c @@ -134,6 +134,8 @@ dissect_wsmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) else if(psidLen ==4) psid = tvb_get_ntohl(tvb, offset); + wsmlength = 0; + if (tree) { proto_tree_add_item(wsmp_tree, hf_wsmp_psid, tvb, offset, psidLen, ENC_BIG_ENDIAN); |