aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-diameter_3gpp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-07-27 13:17:58 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-07-27 13:17:58 +0000
commit36e5bc35c4301582eb3a1888d1b86cc33d3495bc (patch)
treed94baa841256248575d12496c409238fd120dc95 /epan/dissectors/packet-diameter_3gpp.c
parent2fb3c1a4c33a3af5430dccd0e1dbfca62f5f8737 (diff)
Use tvb_length when adding MSISDN.
svn path=/trunk/; revision=38226
Diffstat (limited to 'epan/dissectors/packet-diameter_3gpp.c')
-rw-r--r--epan/dissectors/packet-diameter_3gpp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-diameter_3gpp.c b/epan/dissectors/packet-diameter_3gpp.c
index b876cb3a29..657132a0d0 100644
--- a/epan/dissectors/packet-diameter_3gpp.c
+++ b/epan/dissectors/packet-diameter_3gpp.c
@@ -241,8 +241,9 @@ dissect_diameter_3gpp_msisdn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *
proto_tree *sub_tree;
int offset = 0;
const char *digit_str;
+ int length = tvb_length(tvb);
- item = proto_tree_add_item(tree, hf_diameter_3gpp_msisdn, tvb, offset, 6, ENC_BIG_ENDIAN);
+ item = proto_tree_add_item(tree, hf_diameter_3gpp_msisdn, tvb, offset, length, ENC_BIG_ENDIAN);
sub_tree = proto_item_add_subtree(item,diameter_3gpp_msisdn_ett);
dissect_e164_cc(tvb, sub_tree, offset, TRUE);