Skip to content

Commit

Permalink
tm: restore xavps & flags after rebuilding message
Browse files Browse the repository at this point in the history
(cherry picked from commit 7ee642c)
  • Loading branch information
lazedo authored and miconda committed Aug 19, 2021
1 parent dadac04 commit ad5f0f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/tm/uac.c
Expand Up @@ -300,10 +300,6 @@ static inline int t_run_local_req(
set_route_type( backup_route_type );
p_onsend=0;

/* restore original environment */
tm_xdata_swap(new_cell, &backup_xd, 1);
setsflagsval(sflag_bk);

if (unlikely(ra_ctx.run_flags&DROP_R_F)) {
LM_DBG("tm:local-request dropped msg. to %.*s\n",
lreq.dst_uri.len, lreq.dst_uri.s);
Expand Down Expand Up @@ -372,6 +368,10 @@ static inline int t_run_local_req(
}

clean:
/* restore original environment */
tm_xdata_swap(new_cell, &backup_xd, 1);
setsflagsval(sflag_bk);

/* clean local msg structure */
if (unlikely(lreq.new_uri.s))
{
Expand Down

0 comments on commit ad5f0f5

Please sign in to comment.