Module: kamailio
Branch: 4.2
Commit: 03aa1baf4c934e1bac478e4fde8702c1a6df39f0
URL:
https://github.com/kamailio/kamailio/commit/03aa1baf4c934e1bac478e4fde8702c…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-09-09T12:37:53+02:00
tm: reset 'found' variable at the beginning of each cycle over the branches
(cherry picked from commit 5a442b219075c18a7e3a5b0942f34d05d8baba60)
---
Modified: modules/tm/t_append_branches.c
---
Diff:
https://github.com/kamailio/kamailio/commit/03aa1baf4c934e1bac478e4fde8702c…
Patch:
https://github.com/kamailio/kamailio/commit/03aa1baf4c934e1bac478e4fde8702c…
---
diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c
index 16ed9ab..19d0d34 100644
--- a/modules/tm/t_append_branches.c
+++ b/modules/tm/t_append_branches.c
@@ -111,11 +111,11 @@ int t_append_branches(void) {
init_branch_iterator();
- found = 0;
while((current_uri.s=next_branch( ¤t_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)) {