aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h248/packet-h248-template.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2006-10-06 19:48:00 +0000
committerAnders Broman <anders.broman@ericsson.com>2006-10-06 19:48:00 +0000
commit1785428d4c34fb45608e2cbc325efa692da555a8 (patch)
tree40c06b94c5c1903b3860fa5c1ed54146011b52f1 /asn1/h248/packet-h248-template.c
parent004cb06d90647fc1626d6a9382a807dab967ad3e (diff)
Add a few packages and fix dissecton of a_codecs and handle the case when
hf_param = -1. svn path=/trunk/; revision=19445
Diffstat (limited to 'asn1/h248/packet-h248-template.c')
-rw-r--r--asn1/h248/packet-h248-template.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c
index b4597a804d..3b6b86ca91 100644
--- a/asn1/h248/packet-h248-template.c
+++ b/asn1/h248/packet-h248-template.c
@@ -749,8 +749,9 @@ static int dissect_h248_PkgdName(gboolean implicit_tag, tvbuff_t *tvb, int offse
if (! pkg ) pkg = &no_package;
- hf_param = *(pkg->hfid_params);
- proto_tree_add_uint(package_tree, hf_param, tvb, offset-2, 2, name_minor);
+ if (hf_param > 0)
+ /* TODO: Will this ever happen now??*/
+ proto_tree_add_uint(package_tree, hf_param, tvb, offset-2, 2, name_minor);
} else {
pkg = &no_package;