Skip to content

Commit

Permalink
modules/tm: cycle through all the uac while checking for already exis…
Browse files Browse the repository at this point in the history
…ting branches

(cherry picked from commit 96ac163)
  • Loading branch information
grumvalski committed Jul 23, 2015
1 parent f477aa3 commit 8029691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tm/t_append_branches.c
Expand Up @@ -119,7 +119,7 @@ int t_append_branches(void) {
&bflags, &si, &ruid, &instance, &location_ua))) {
LM_DBG("Current uri %.*s\n",current_uri.len, current_uri.s);

for (i=0; i<nr_branches; i++) {
for (i=0; i<=nr_branches; i++) {
if (t->uac[i].ruid.len == ruid.len
&& !memcmp(t->uac[i].ruid.s, ruid.s, ruid.len)) {
LM_DBG("branch already added [%.*s]\n", ruid.len, ruid.s);
Expand Down

0 comments on commit 8029691

Please sign in to comment.