summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-07-02 19:57:52 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-07-02 19:17:58 +0000
commit71510297283b8c0ae405cb514e5def42ce982049 (patch)
treee06dd1e85553f9deced62b17bc255697c12cbf0c
parentccd552a838a2503c558c29369747ffe85e144ab5 (diff)
downloadwireshark-71510297283b8c0ae405cb514e5def42ce982049.tar.gz
PEEKREMOTE: ensure to initialize mandatory fields in info_11ac structure
Bug: 11326 Change-Id: I5a438bda7448f6b6b9959bdc03b0252b3cf22697 Reviewed-on: https://code.wireshark.org/review/9469 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r--epan/dissectors/packet-peekremote.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/dissectors/packet-peekremote.c b/epan/dissectors/packet-peekremote.c
index 4684618b03..3411d47270 100644
--- a/epan/dissectors/packet-peekremote.c
+++ b/epan/dissectors/packet-peekremote.c
@@ -472,7 +472,12 @@ dissect_peekremote_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
offset +=4;
extflags = tvb_get_ntohl(tvb, offset);
if (extflags & EXT_FLAG_802_11ac) {
+ guint i;
phdr.phy = PHDR_802_11_PHY_11AC;
+ phdr.phy_info.info_11ac.presence_flags = 0;
+ for (i = 0; i < 4; i++) {
+ phdr.phy_info.info_11ac.nss[i] = 0;
+ }
} else {
phdr.phy = PHDR_802_11_PHY_11N;
phdr.phy_info.info_11n.presence_flags = PHDR_802_11N_HAS_MCS_INDEX;