Module: kamailio
Branch: 4.3
Commit: b0cab1484979a7d975b56bf8dcf0dbc2e3510732
URL:
https://github.com/kamailio/kamailio/commit/b0cab1484979a7d975b56bf8dcf0dbc…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-09-09T12:37:36+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/b0cab1484979a7d975b56bf8dcf0dbc…
Patch:
https://github.com/kamailio/kamailio/commit/b0cab1484979a7d975b56bf8dcf0dbc…
---
diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c
index 1cad198..d32ac1a 100644
--- a/modules/tm/t_append_branches.c
+++ b/modules/tm/t_append_branches.c
@@ -108,11 +108,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)) {