Skip to content

Commit

Permalink
tm: reset 'found' variable at the beginning of each cycle over the br…
Browse files Browse the repository at this point in the history
…anches

(cherry picked from commit 5a442b2)
  • Loading branch information
grumvalski committed Sep 9, 2015
1 parent 262d357 commit b0cab14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tm/t_append_branches.c
Expand Up @@ -108,11 +108,11 @@ int t_append_branches(void) {

init_branch_iterator();

found = 0;
while((current_uri.s=next_branch( &current_uri.len, &q, &dst_uri, &path,
&bflags, &si, &ruid, &instance, &location_ua))) {
LM_DBG("Current uri %.*s\n",current_uri.len, current_uri.s);

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)) {
Expand Down

0 comments on commit b0cab14

Please sign in to comment.