Skip to content

Commit

Permalink
tm: check branch uri against current uri when deciding if append a ne…
Browse files Browse the repository at this point in the history
…w branch
  • Loading branch information
grumvalski committed Jul 7, 2016
1 parent 81b084e commit 335e446
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/tm/t_append_branches.c
Expand Up @@ -127,7 +127,9 @@ int t_append_branches(void) {
found = 0;
for (i=0; i<outgoings; i++) {
if (t->uac[i].ruid.len == ruid.len
&& !memcmp(t->uac[i].ruid.s, ruid.s, ruid.len)) {
&& !memcmp(t->uac[i].ruid.s, ruid.s, ruid.len)
&& t->uac[i].uri.len == current_uri.len
&& !memcmp(t->uac[i].uri.s, current_uri.s, current_uri.len)) {
LM_DBG("branch already added [%.*s]\n", ruid.len, ruid.s);
found = 1;
break;
Expand Down

0 comments on commit 335e446

Please sign in to comment.