ieee80211: fix length of extension tag

This commit is contained in:
Alexis La Goutte 2021-02-01 20:36:05 +01:00 committed by Wireshark GitLab Utility
parent 30744de9e3
commit be214d1166
1 changed files with 1 additions and 1 deletions

View File

@ -22844,7 +22844,7 @@ add_tagged_field(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset
if (tree) {
if (tag_no == TAG_ELEMENT_ID_EXTENSION) {
ext_tag_no = tvb_get_guint8(tvb, offset + 2);
ti = proto_tree_add_item(orig_tree, hf_ieee80211_ext_tag, tvb, offset + 2, tag_len , ENC_NA);
ti = proto_tree_add_item(orig_tree, hf_ieee80211_ext_tag, tvb, offset, 2 + tag_len, ENC_NA);
proto_item_append_text(ti, ": %s", val_to_str_ext(ext_tag_no, &tag_num_vals_eid_ext_ext, "Reserved (%d)"));
} else {
ti = proto_tree_add_item(orig_tree, hf_ieee80211_tag, tvb, offset, 2 + tag_len , ENC_NA);