Module: kamailio
Branch: 4.3
Commit: 5100ba7f3e15456d45b78444c415cefd36485921
URL:
https://github.com/kamailio/kamailio/commit/5100ba7f3e15456d45b78444c415cef…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-07-23T15:28:20+02:00
modules/tm: cycle through all the uac while checking for already existing branches
(cherry picked from commit 96ac163139976e8a9dea0e7252c66294054281b4)
---
Modified: modules/tm/t_append_branches.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5100ba7f3e15456d45b78444c415cef…
Patch:
https://github.com/kamailio/kamailio/commit/5100ba7f3e15456d45b78444c415cef…
---
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);