aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mip6.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-11-08 19:25:05 +0100
committerMartin Kaiser <wireshark@kaiser.cx>2014-11-08 18:32:06 +0000
commitee1c74c3487812b3b361c66dfa7c2055e4df1588 (patch)
treed96d9ae872e8c02349a9b3e56f6639d3fe392d93 /epan/dissectors/packet-mip6.c
parent421913b721d5b12c1f6c8a09daec35d8bae58bb5 (diff)
simple fix for bug 10676
Bug: 10676 Change-Id: I442aa2ce44309655190752e715279d7325647336 Reviewed-on: https://code.wireshark.org/review/5199 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/packet-mip6.c')
-rw-r--r--epan/dissectors/packet-mip6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mip6.c b/epan/dissectors/packet-mip6.c
index fecc4d1a41..129de32462 100644
--- a/epan/dissectors/packet-mip6.c
+++ b/epan/dissectors/packet-mip6.c
@@ -2822,7 +2822,7 @@ dissect_pmip6_opt_cr(const mip6_opt *optp _U_, tvbuff_t *tvb, int offset,
proto_tree_add_item(opt_tree, hf_mip6_cr_reserved, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
- len = optlen - 3;
+ len = optlen - 4;
while (len > 0) {
req_type = tvb_get_guint8(tvb,offset);