make sure curr_info.sig is not-NULL before derreferencing it.

similar to  Bug 1451

svn path=/trunk/; revision=21050
This commit is contained in:
Luis Ontanon 2007-03-18 14:56:58 +00:00
parent c6244e9671
commit 306309b94d
1 changed files with 1 additions and 1 deletions

View File

@ -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);