aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/peektagged.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-30 00:59:31 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-30 07:59:59 +0000
commitaac8daad57de6bb4c4e7c949953751a238e15cac (patch)
tree4a0ec46dfbb4a19baa32242304b8e903ab5fa822 /wiretap/peektagged.c
parentd2ee010a397626d44dad1dad1323e8500db7ddf3 (diff)
Use correct variable.
To check whether data_rate_or_mcs_index is set, check saw_data_rate_or_mcs_index; we might see a value of 0 for that field (it's a valid MCS index), so we can't use it as an out-of-band value meaning "not set". Change-Id: I75d7fdb4a90836538c82f56f2afb05c0603278a5 Reviewed-on: https://code.wireshark.org/review/4991 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/peektagged.c')
-rw-r--r--wiretap/peektagged.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/peektagged.c b/wiretap/peektagged.c
index 94bc564def..525c44eaa6 100644
--- a/wiretap/peektagged.c
+++ b/wiretap/peektagged.c
@@ -687,7 +687,7 @@ peektagged_read_packet(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
switch (wth->file_encap) {
case WTAP_ENCAP_IEEE_802_11_WITH_RADIO:
- if (data_rate_or_mcs_index) {
+ if (saw_data_rate_or_mcs_index) {
if (ext_flags & EXT_FLAG_MCS_INDEX_USED) {
/* It's an MCS index. */
ieee_802_11.presence_flags |= PHDR_802_11_HAS_MCS_INDEX;