Skip to content

Commit

Permalink
check if trace id node exists before de-reference (fix segfault)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Tamme committed Sep 25, 2017
1 parent bf1c6de commit 8ba5c8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/siptrace/siptrace.c
Expand Up @@ -2361,6 +2361,10 @@ static struct mi_root* sip_trace_mi(struct mi_root* cmd_tree, void* param )
}

it=get_list_start(&node->value);
if (!it) {
return init_mi_tree( 400, MI_SSTR(MI_BAD_PARM));
}

hash=it->hash;

for (;it&&it->hash==hash;it=it->next)
Expand Down

0 comments on commit 8ba5c8a

Please sign in to comment.