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 <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2016-06-07 07:48:58 +02:00 committed by Anders Broman
parent 4509f2e2a4
commit f7cd537e1a
1 changed files with 2 additions and 2 deletions

View File

@ -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)");