From f7cd537e1ad2ab347d36c5b40796aef22629a00c Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 7 Jun 2016 07:48:58 +0200 Subject: PIMv2 Hello packet incorrectly dissect Option 1 Bug: 12493 Change-Id: I646853c6756689f9776b11c585d573c117c68cf2 Reviewed-on: https://code.wireshark.org/review/15762 Reviewed-by: Alexis La Goutte Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/dissectors/packet-pim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-pim.c') diff --git a/epan/dissectors/packet-pim.c b/epan/dissectors/packet-pim.c index f2736958a3..ac0c299c37 100644 --- a/epan/dissectors/packet-pim.c +++ b/epan/dissectors/packet-pim.c @@ -949,8 +949,8 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) switch(hello_opt) { case PIM_HELLO_HOLD_T: /* Hello Hold Time Option */ - ti_hold = proto_tree_add_item_ret_uint(pimopt_tree, hf_pim_holdtime, tvb, - offset, 2, ENC_BIG_ENDIAN, &holdtime); + ti_hold = proto_tree_add_item_ret_uint(opt_tree, hf_pim_holdtime, tvb, + offset+4, 2, ENC_BIG_ENDIAN, &holdtime); switch(holdtime){ case 0: proto_item_append_text(ti_hold, " (goodbye)"); -- cgit v1.2.3