Skip to content

Commit

Permalink
tm: initiate cancel_bm in t_inject_branch
Browse files Browse the repository at this point in the history
Make sure we're not canceling unwanted branches if there is some garbage
in the cancel_bm mask

Thanks go to Bogdan Iancu for debugging and fixing

(cherry picked from commit b8dee70)
  • Loading branch information
razvancrainea committed Dec 16, 2020
1 parent 46d0b75 commit 95ec542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tm/t_fwd.c
Expand Up @@ -1014,7 +1014,7 @@ static int dst_to_msg(struct sip_msg *s_msg, struct sip_msg *d_msg)
int t_inject_branch( struct cell *t, struct sip_msg *msg, int flags)
{
static struct sip_msg faked_req;
branch_bm_t cancel_bm;
branch_bm_t cancel_bm = 0;
str reason = str_init(CANCEL_REASON_200);
int rc;

Expand Down

0 comments on commit 95ec542

Please sign in to comment.