Skip to content

Commit

Permalink
modules/ims_dialog: check branch is set before dereferencing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeepee committed Feb 29, 2016
1 parent 1e4a231 commit 176c98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ims_dialog/dlg_hash.c
Expand Up @@ -510,7 +510,7 @@ struct dlg_cell_out* build_new_dlg_out(struct dlg_cell *dlg, str* to_uri, str* t

p = (char*) (dlg_out + 1);

if (branch->len > 0) {
if (branch && branch->len > 0) {
dlg_out->branch.s = p;
dlg_out->branch.len = branch->len;
memcpy(p, branch->s, branch->len);
Expand Down

0 comments on commit 176c98b

Please sign in to comment.