diff options
author | Yasuyuki Tanaka <yatch@isl.rdc.toshiba.co.jp> | 2016-10-25 14:27:47 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-10-25 21:01:55 +0000 |
commit | 470a44a3341a91b5b7adf3f8bc14ce0727f6e938 (patch) | |
tree | 8bc233d72fd3a2282b1e1fedcecc274404f732ba /epan/dissectors/packet-icmpv6.c | |
parent | 149627a3b099f7405a6e7a7cc078a906c9844421 (diff) |
ICMPv6: fix dissection of MPL (dissect_mpl_control)
An MPL Seed Info of 2 bytes length (length_of_fixed_part), which does
not have seed-id nor buffer-mpl-messages, is compliant and should be
accepted.
Bug:13045
Change-Id: I6c4c8864fdc8d6e590a5d28d68e5aaff8c1535c3
Reviewed-on: https://code.wireshark.org/review/18448
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-icmpv6.c')
-rw-r--r-- | epan/dissectors/packet-icmpv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-icmpv6.c b/epan/dissectors/packet-icmpv6.c index ac005e83de..1210ca0c1a 100644 --- a/epan/dissectors/packet-icmpv6.c +++ b/epan/dissectors/packet-icmpv6.c @@ -3735,7 +3735,7 @@ dissect_mpl_control(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *t } remaining = tvb_captured_length_remaining(tvb, body_offset); - while (remaining > length_of_fixed_part) { + while (remaining >= length_of_fixed_part) { seed_info_index++; seed_info_tree = proto_tree_add_subtree_format(tree, tvb, body_offset, length_of_fixed_part, ett_icmpv6_mpl_seed_info, NULL, |