Module: kamailio
Branch: master
Commit: 2ab0adee57aa82487adf7d3776835eca071afa27
URL:
https://github.com/kamailio/kamailio/commit/2ab0adee57aa82487adf7d3776835ec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-04T09:08:04+02:00
tmx: missing break in t_cancel_branches(others)
---
Modified: src/modules/tmx/tmx_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2ab0adee57aa82487adf7d3776835ec…
Patch:
https://github.com/kamailio/kamailio/commit/2ab0adee57aa82487adf7d3776835ec…
---
diff --git a/src/modules/tmx/tmx_mod.c b/src/modules/tmx/tmx_mod.c
index 19a8962813..9c5f8b1042 100644
--- a/src/modules/tmx/tmx_mod.c
+++ b/src/modules/tmx/tmx_mod.c
@@ -322,15 +322,18 @@ static int t_cancel_branches(struct sip_msg* msg, char *k, char
*s2)
init_cancel_info(&cancel_data);
switch(n) {
case 1:
- /* prepare cancel for every branch except idx */
+ /* prepare cancel for every branch except idx (others) */
_tmx_tmb.prepare_to_cancel(t,
&cancel_data.cancel_bitmap, 1<<idx);
+ break;
case 2:
+ /* prepare cancel for current branch (idx) */
if(msg->first_line.u.reply.statuscode>=200)
break;
cancel_data.cancel_bitmap = 1<<idx;
break;
default:
+ /* prepare cancel for all branches */
if (msg->first_line.u.reply.statuscode>=200)
/* prepare cancel for every branch except idx */
_tmx_tmb.prepare_to_cancel(t,