Module: kamailio Branch: 4.2 Commit: 8029691be7d64960100590d08bdb1006d18d0f3b URL: https://github.com/kamailio/kamailio/commit/8029691be7d64960100590d08bdb1006d18d0f3b
Author: Federico Cabiddu <[email protected]> Committer: Federico Cabiddu <[email protected]> Date: 2015-07-23T15:28:50+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/8029691be7d64960100590d08bdb1006d18d0f3b.diff Patch: https://github.com/kamailio/kamailio/commit/8029691be7d64960100590d08bdb1006d18d0f3b.patch --- diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c index 384c301..37f8025 100644 --- a/modules/tm/t_append_branches.c +++ b/modules/tm/t_append_branches.c @@ -119,7 +119,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); _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
