aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-camel.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-04-23 05:16:53 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-04-23 05:16:53 +0000
commit1638e46df2abde295c84a33286d9cab84fa2ea4c (patch)
tree051ff6a9119b98828061e0205acd76720dda9e1a /epan/dissectors/packet-camel.c
parent1d5cb5ff645a8235f129a1a82b1fe0d243372679 (diff)
downloadwireshark-1638e46df2abde295c84a33286d9cab84fa2ea4c.tar.gz
wireshark-1638e46df2abde295c84a33286d9cab84fa2ea4c.tar.bz2
wireshark-1638e46df2abde295c84a33286d9cab84fa2ea4c.zip
From Vasil Velichkov:
Fix dissection of Location and Generic Number in CAMEL http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2494 svn path=/trunk/; revision=25149
Diffstat (limited to 'epan/dissectors/packet-camel.c')
-rw-r--r--epan/dissectors/packet-camel.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/epan/dissectors/packet-camel.c b/epan/dissectors/packet-camel.c
index 6ac4e3387e..8eb4bb570d 100644
--- a/epan/dissectors/packet-camel.c
+++ b/epan/dissectors/packet-camel.c
@@ -2652,8 +2652,16 @@ dissect_camel_ChargeIndicator(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int
static int
dissect_camel_LocationNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ tvbuff_t *parameter_tvb;
+
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ &parameter_tvb);
+
+
+ if (!parameter_tvb)
+ return offset;
+
+dissect_isup_location_number_parameter(parameter_tvb, tree, NULL);
return offset;
}
@@ -4240,8 +4248,16 @@ dissect_camel_GapTreatment(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int off
static int
dissect_camel_GenericNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ tvbuff_t *parameter_tvb;
+
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ &parameter_tvb);
+
+
+ if (!parameter_tvb)
+ return offset;
+
+dissect_isup_generic_number_parameter(parameter_tvb, tree, NULL);
return offset;
}