aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-07-02 11:25:59 -0700
committerGuy Harris <guy@alum.mit.edu>2015-07-02 18:26:27 +0000
commit622be70534fb8333abbd0ecda20b68bdd0a5e917 (patch)
treea4a0f78289755820d84896fb974edc3588b127b2 /wiretap
parentcd6977221afb9bd0c77aee848c8be1d647d66259 (diff)
Zero out the nss array when we don't have the 802.11ac information we need.
Change-Id: I576be8c1a1badf6befe90a226f83e8d03f8326a7 Reviewed-on: https://code.wireshark.org/review/9470 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/peektagged.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wiretap/peektagged.c b/wiretap/peektagged.c
index c6b2d357f3..b20aded4d9 100644
--- a/wiretap/peektagged.c
+++ b/wiretap/peektagged.c
@@ -435,6 +435,7 @@ peektagged_read_packet(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
gint channel;
guint frequency;
struct ieee_802_11_phdr ieee_802_11;
+ guint i;
int skip_len = 0;
guint64 t;
@@ -613,6 +614,8 @@ peektagged_read_packet(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
if (ext_flags & EXT_FLAG_802_11ac) {
ieee_802_11.phy = PHDR_802_11_PHY_11AC;
ieee_802_11.phy_info.info_11ac.presence_flags = 0;
+ for (i = 0; i < 4; i++)
+ ieee_802_11.phy_info.info_11ac.nss[i] = 0;
switch (ext_flags & EXT_FLAGS_GI) {