make sure curr_info.evt is not-NULL before derreferencing it.
fixes Bug 1451 svn path=/trunk/; revision=21048
This commit is contained in:
parent
cd9c4643d4
commit
92ad3144da
|
@ -1105,7 +1105,7 @@ static int dissect_h248_EventParameterName(gboolean implicit_tag _U_, tvbuff_t *
|
|||
|
||||
curr_info.par = &no_param;
|
||||
|
||||
if (curr_info.evt->parameters) {
|
||||
if (curr_info.evt && curr_info.evt->parameters) {
|
||||
for(evtpar = curr_info.evt->parameters; evtpar->hfid; evtpar++) {
|
||||
if (evtpar->id == param_id) {
|
||||
curr_info.par = evtpar;
|
||||
|
@ -1116,7 +1116,7 @@ static int dissect_h248_EventParameterName(gboolean implicit_tag _U_, tvbuff_t *
|
|||
curr_info.par = &no_param;
|
||||
}
|
||||
|
||||
if (curr_info.evt->param_names && ( strval = match_strval(param_id, curr_info.evt->param_names) )) {
|
||||
if (curr_info.evt && curr_info.evt->param_names && ( strval = match_strval(param_id, curr_info.evt->param_names) )) {
|
||||
strval = ep_strdup_printf("%s (%d)",strval,param_id);
|
||||
} else {
|
||||
strval = ep_strdup_printf("Unknown (%d)",param_id);
|
||||
|
|
Loading…
Reference in New Issue