forked from osmocom/wireshark
Always skip the whole header: The current code would only decode
sizeof strcut wlan_header_v1 bytes, but if our struct was missing some newer elements, things would go wrong. svn path=/trunk/; revision=14626
This commit is contained in:
parent
2073fb5b5b
commit
8063b6d0df
|
@ -284,8 +284,7 @@ dissect_wlancap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
offset+=4;
|
||||
}
|
||||
|
||||
if (offset == 0)
|
||||
offset = length;
|
||||
offset = length;
|
||||
|
||||
/* dissect the 802.11 header next */
|
||||
next_tvb = tvb_new_subset(tvb, offset, -1, -1);
|
||||
|
|
Loading…
Reference in New Issue