Skip to content

Commit

Permalink
dlgs: proper return for tags counting
Browse files Browse the repository at this point in the history
- GH #2884
  • Loading branch information
miconda committed Oct 14, 2021
1 parent d5c1b46 commit 1f12e2a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/dlgs/dlgs_mod.c
Expand Up @@ -344,10 +344,7 @@ static int ki_dlgs_tags_count(sip_msg_t *msg, str *vtags)
int ret;

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

/**
Expand Down

0 comments on commit 1f12e2a

Please sign in to comment.