diff options
author | Marius Paliga <marius.paliga@gmail.com> | 2017-07-27 10:14:50 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-07-27 11:38:33 +0000 |
commit | ea233921b46b3eeda51865bb5306919b16202872 (patch) | |
tree | 0e78527569825da0f663ede854f3723cca689dd8 /epan/dissectors/packet-mip6.c | |
parent | 76a3a6797ceb93535a06ca4d17b3a454f5728cca (diff) |
PMIPv6: Fix of valid length of GRE Key Option
Change-Id: Ie212874a9eb9b7f9ad0dc502611d135210c9f259
Reviewed-on: https://code.wireshark.org/review/22810
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: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-mip6.c')
-rw-r--r-- | epan/dissectors/packet-mip6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mip6.c b/epan/dissectors/packet-mip6.c index 7340d8b916..0de0b45242 100644 --- a/epan/dissectors/packet-mip6.c +++ b/epan/dissectors/packet-mip6.c @@ -2925,7 +2925,7 @@ dissect_pmip6_opt_grek(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void proto_tree_add_item(opt_tree, hf_mip6_ipv4dra_reserved, tvb, offset, 2, ENC_BIG_ENDIAN); - if (option_len == 8) { + if (option_len == 6) { offset += 2; proto_tree_add_item_ret_uint(opt_tree, hf_pmip6_gre_key, tvb, offset, PMIP6_GREK_ID_LEN, ENC_BIG_ENDIAN, &key); |