diff options
author | Okan Palaz <okan.palaz@airties.com> | 2021-10-21 11:09:38 +0300 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-10-21 16:20:27 +0000 |
commit | 59248a271e63c78e434cdce902490affc9015fe2 (patch) | |
tree | 28f8706321360abbc314c99d7bdfbc9a085b4e77 | |
parent | 7dc822ef0edc10f180c2b5f3071132fd9026e5c2 (diff) | |
download | wireshark-59248a271e63c78e434cdce902490affc9015fe2.tar.gz wireshark-59248a271e63c78e434cdce902490affc9015fe2.tar.bz2 wireshark-59248a271e63c78e434cdce902490affc9015fe2.zip |
ieee1905: Add missing offset increment
In dissect_unassociated_sta_link_metric_response, offset wasn't being
incremented after sta_count was read. The same byte was being read as
the first octet of the MAC address.
(cherry picked from commit 98c0b5ad629fdb8e9a10199e32ba066b198c2eda)
-rw-r--r-- | epan/dissectors/packet-ieee1905.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ieee1905.c b/epan/dissectors/packet-ieee1905.c index 37fe05ed13..df33dafa2e 100644 --- a/epan/dissectors/packet-ieee1905.c +++ b/epan/dissectors/packet-ieee1905.c @@ -3867,6 +3867,7 @@ dissect_unassociated_sta_link_metric_response(tvbuff_t *tvb, packet_info *pinfo sta_count = tvb_get_guint8(tvb, offset); proto_tree_add_item(tree, hf_ieee1905_unassoc_sta_link_metric_sta_count, tvb, offset, 1, ENC_NA); + offset++; sta_list = proto_tree_add_subtree(tree, tvb, offset, sta_count * 12, ett_unassoc_sta_link_metric_list, NULL, |