Skip to content

Commit

Permalink
Verify the dialog mi parameter is not null before passing to dlg_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrod Baumann committed Apr 13, 2015
1 parent 8d8ea6f commit c745068
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dialog/dlg_hash.c
Expand Up @@ -1337,6 +1337,9 @@ static inline struct mi_root* process_mi_params(struct mi_root *cmd_tree,

*idx = *cnt = 0;

if (!p1->s)
return init_mi_tree( 400, "Invalid Call-ID specified", 25);

h_entry = dlg_hash( p1/*callid*/ );

d_entry = &(d_table->entries[h_entry]);
Expand Down

0 comments on commit c745068

Please sign in to comment.