wireshark(HEAD): oampdu: Fix: do not stop GetReq packet parsing for Object 0

* The next_byte variable is taken before the pointer moved forward, this lead
   to stop parsing get request packets when object is 0. This commit fixes it.

Signed-off-by: Arkady Gilinsky <8351139-ark-g@users.noreply.gitlab.com>
This commit is contained in:
Arkady Gilinsky 2021-07-15 07:26:11 +03:00 committed by Wireshark GitLab Utility
parent 458d870a66
commit 96c0700c62
1 changed files with 1 additions and 1 deletions

View File

@ -1711,8 +1711,8 @@ dissect_oampdu_vendor_specific(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
}
}
}
next_byte = tvb_get_guint8(tvb, offset);
offset += variable_length;
next_byte = tvb_get_guint8(tvb, offset);
while (next_byte != 0x00) {
proto_tree_add_item(dpoe_opcode_tree, hf_dpoe_variable_descriptor, tvb, offset, 3, ENC_BIG_ENDIAN);
offset += 3;