summaryrefslogtreecommitdiff
path: root/asn1/h248
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-03-18 14:56:58 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-03-18 14:56:58 +0000
commit306309b94de69e07b2257489d60cdecd1abe64bb (patch)
tree3414ec31a0e830490a813e10ef2348e2f149e7fe /asn1/h248
parentc6244e96712d47420335a8ce8d3ae263bd922427 (diff)
downloadwireshark-306309b94de69e07b2257489d60cdecd1abe64bb.tar.gz
make sure curr_info.sig is not-NULL before derreferencing it.
similar to Bug 1451 svn path=/trunk/; revision=21050
Diffstat (limited to 'asn1/h248')
-rw-r--r--asn1/h248/packet-h248-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c
index 5601f373e6..666ef53f4a 100644
--- a/asn1/h248/packet-h248-template.c
+++ b/asn1/h248/packet-h248-template.c
@@ -1042,7 +1042,7 @@ static int dissect_h248_SigParameterName(gboolean implicit_tag _U_, tvbuff_t *tv
}
}
- if (curr_info.sig->param_names && ( strval = match_strval(param_id, curr_info.sig->param_names) )) {
+ if (curr_info.sig && curr_info.sig->param_names && ( strval = match_strval(param_id, curr_info.sig->param_names) )) {
strval = ep_strdup_printf("%s (%d)",strval,param_id);
} else {
strval = ep_strdup_printf("Unknown (%d)",param_id);