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:
Jörg Mayer 2005-06-14 14:33:55 +00:00
parent 2073fb5b5b
commit 8063b6d0df
1 changed files with 1 additions and 2 deletions

View File

@ -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);