Skip to content

Commit

Permalink
tm: fix script-level read operations on the timeout variables
Browse files Browse the repository at this point in the history
Read operations before setting them or calling t_relay() would
return 0.

Reported by Jamuel Starkey
  • Loading branch information
liviuchircu committed Jul 30, 2014
1 parent 147f57a commit 7396231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tm/tm.c
Expand Up @@ -683,8 +683,8 @@ static int script_init( struct sip_msg *foo, void *bar)
set_t(T_UNDEFINED);
reset_cancelled_t();
reset_e2eack_t();
unset_timeout(fr_timeout);
unset_timeout(fr_inv_timeout);
fr_timeout = timer_id2timeout[FR_TIMER_LIST];
fr_inv_timeout = timer_id2timeout[FR_INV_TIMER_LIST];

/* reset the kill reason status */
reset_kr();
Expand Down

0 comments on commit 7396231

Please sign in to comment.