aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2012-01-20 16:12:24 +0000
committerJörg Mayer <jmayer@loplof.de>2012-01-20 16:12:24 +0000
commitdbf1be8944e33304950d97ada20a307d371cf1bf (patch)
tree36aa87e248729893cfd6dd00b4f7068792728af5 /epan
parent5357769acaa744273c0d7e0ac2fc31b5561ef0f4 (diff)
As reported by hyphenated on #wireshark:
don't increase offset by 4 after two add_item(...,2 ,...) commands. Increase by 2 after each add_item instead. svn path=/trunk/; revision=40606
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-gtpv2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c
index 30f355dca7..f989c67814 100644
--- a/epan/dissectors/packet-gtpv2.c
+++ b/epan/dissectors/packet-gtpv2.c
@@ -1717,8 +1717,9 @@ decode_gtpv2_uli(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_item
dissect_e212_mcc_mnc(tvb, pinfo, part_tree, offset, TRUE);
offset+=3;
proto_tree_add_item(part_tree, hf_gtpv2_uli_cgi_lac, tvb, offset, 2, ENC_BIG_ENDIAN);
+ offset+=2;
proto_tree_add_item(part_tree, hf_gtpv2_uli_cgi_ci, tvb, offset, 2, ENC_BIG_ENDIAN);
- offset+=4;
+ offset+=2;
if(offset==length)
return;
}