Skip to content

Commit 92830e9

Browse files
authored
Merge pull request #2020 from l2dy/dialplan
dialplan: fix insert error condition
2 parents 596673c + 67b1f64 commit 92830e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/dialplan/dialplan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ static int dp_head_insert(int dp_insert_type, str *content,
199199
dp_head_p start = dp_hlist;
200200
dp_head_p tmp = NULL;
201201

202-
if ((!content && (!content->s || !content->len)) ||
203-
(!partition && (!partition->s || !partition->len))) {
202+
if ((!content || (!content->s || !content->len)) ||
203+
(!partition || (!partition->s || !partition->len))) {
204204
LM_ERR("invalid insert in partition!\n");
205205
return -1;
206206
}

0 commit comments

Comments
 (0)