forked from osmocom/wireshark
ieee802.11: Make sure we do not include the FCS in the next_tvb.
In some cases we are including the FCS in the next TVB which can screw up dissection. Change-Id: Ie721a9ca169828f99d2aef4bd1e1762d06a14070 Reviewed-on: https://code.wireshark.org/review/28848 Petri-Dish: Richard Sharpe <realrichardsharpe@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
7dd68fce89
commit
094297ec77
|
@ -23237,6 +23237,9 @@ dissect_ieee80211_common(tvbuff_t *tvb, packet_info *pinfo,
|
|||
next_tvb = process_reassembled_data(tvb, hdr_len, pinfo,
|
||||
"Reassembled 802.11", fd_head,
|
||||
&frag_items, NULL, hdr_tree);
|
||||
/* If we got a next_tvb, but it has an FCS, strip the FCS */
|
||||
if (next_tvb && has_fcs)
|
||||
next_tvb = tvb_new_subset_length_caplen(next_tvb, 0, len, reported_len);
|
||||
} else {
|
||||
/*
|
||||
* If this is the first fragment, dissect its contents, otherwise
|
||||
|
|
Loading…
Reference in New Issue