aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtpv2.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2012-12-16 08:58:46 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2012-12-16 08:58:46 +0000
commit9a2fbb1978273b3e58bb4da4e3cd89315b78d659 (patch)
tree2813483bea9cb82ea023bb39bdecd66d296b7a0f /epan/dissectors/packet-gtpv2.c
parentd206dacb95405baa8f5dc9c64f542f86842722ef (diff)
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8098 :
Incorrect dissection of SAC and RAC in 3GPP ULI AVP svn path=/trunk/; revision=46556
Diffstat (limited to 'epan/dissectors/packet-gtpv2.c')
-rw-r--r--epan/dissectors/packet-gtpv2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c
index 845f4e4de8..b474e36051 100644
--- a/epan/dissectors/packet-gtpv2.c
+++ b/epan/dissectors/packet-gtpv2.c
@@ -1835,8 +1835,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_sai_lac, tvb, offset, 2, ENC_BIG_ENDIAN);
+ offset += 2;
proto_tree_add_item(part_tree, hf_gtpv2_uli_sai_sac, tvb, offset, 2, ENC_BIG_ENDIAN);
- offset += 4;
+ offset += 2;
if (offset == length)
return;
}
@@ -1849,8 +1850,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_rai_lac, tvb, offset, 2, ENC_BIG_ENDIAN);
+ offset += 2;
proto_tree_add_item(part_tree, hf_gtpv2_uli_rai_rac, tvb, offset, 2, ENC_BIG_ENDIAN);
- offset += 4;
+ offset += 2;
if (offset == length)
return;
}