Module: kamailio
Branch: master
Commit: 96ac163139976e8a9dea0e7252c66294054281b4
URL:
https://github.com/kamailio/kamailio/commit/96ac163139976e8a9dea0e7252c6629…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-07-23T15:25:44+02:00
modules/tm: cycle through all the uac while checking for already existing branches
---
Modified: modules/tm/t_append_branches.c
---
Diff:
https://github.com/kamailio/kamailio/commit/96ac163139976e8a9dea0e7252c6629…
Patch:
https://github.com/kamailio/kamailio/commit/96ac163139976e8a9dea0e7252c6629…
---
diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c
index b276d9e..8060021 100644
--- a/modules/tm/t_append_branches.c
+++ b/modules/tm/t_append_branches.c
@@ -116,7 +116,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);