From 59acb6f9c6b81d0ffae4ce5af4f772e1060d115d Mon Sep 17 00:00:00 2001 From: Henning Westerholt Date: Mon, 13 Aug 2018 21:17:38 +0200 Subject: [PATCH] tmx: bug fix in cancel for current branches in helper, reported in GH #1620 (cherry picked from commit 8a66803610f2c822f319899cd2bf8675615348bc) --- src/modules/tmx/tmx_mod.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/tmx/tmx_mod.c b/src/modules/tmx/tmx_mod.c index 27e6d966836..a381e259a69 100644 --- a/src/modules/tmx/tmx_mod.c +++ b/src/modules/tmx/tmx_mod.c @@ -320,6 +320,8 @@ static int t_cancel_branches(sip_msg_t* msg, char *k, char *s2) idx = tcx->branch_index; n = (int)(long)k; init_cancel_info(&cancel_data); + /* tm function: prepare_to_cancel(struct cell *t, branch_bm_t *cancel_bm, + branch_bm_t skip_branches) */ switch(n) { case 1: /* prepare cancel for every branch except idx (others) */ @@ -331,6 +333,7 @@ static int t_cancel_branches(sip_msg_t* msg, char *k, char *s2) if(msg->first_line.u.reply.statuscode>=200) break; cancel_data.cancel_bitmap = 1<