Skip to content

Commit

Permalink
dlgs: fixed return value for dlgs_tags_count()
Browse files Browse the repository at this point in the history
(cherry picked from commit 057383f)
  • Loading branch information
miconda committed Dec 1, 2020
1 parent 3c8d3df commit 49d8338
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/dlgs/dlgs_mod.c
Expand Up @@ -341,8 +341,11 @@ static int w_dlgs_tags_rm(sip_msg_t *msg, char *ptags, char *p2)
*/
static int ki_dlgs_tags_count(sip_msg_t *msg, str *vtags)
{
if(dlgs_tags_count(msg, vtags)<0) {
return -1;
int ret;

ret = dlgs_tags_count(msg, vtags);
if(ret<=0) {
return (ret-1);
}
return 1;
}
Expand Down

0 comments on commit 49d8338

Please sign in to comment.