Skip to content

Commit

Permalink
dialplan: fix insert error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
l2dy committed Mar 12, 2020
1 parent 596673c commit 67b1f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/dialplan/dialplan.c
Expand Up @@ -199,8 +199,8 @@ static int dp_head_insert(int dp_insert_type, str *content,
dp_head_p start = dp_hlist;
dp_head_p tmp = NULL;

if ((!content && (!content->s || !content->len)) ||
(!partition && (!partition->s || !partition->len))) {
if ((!content || (!content->s || !content->len)) ||
(!partition || (!partition->s || !partition->len))) {
LM_ERR("invalid insert in partition!\n");
return -1;
}
Expand Down

0 comments on commit 67b1f64

Please sign in to comment.