Skip to content

Commit

Permalink
siptrace: fix insufficient transaction check
Browse files Browse the repository at this point in the history
In case the transaction is undefineds, do not run the REQUEST_IN
callback
  • Loading branch information
razvancrainea committed Dec 15, 2016
1 parent 523a47b commit 7fa10e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/siptrace/siptrace.c
Expand Up @@ -749,7 +749,8 @@ static int trace_dialog(struct sip_msg *msg)
/* if transaction is found already created, it means our REQUEST_IN
tm callback was triggered dry (we did not do anything as no
tracing was set at that time) -> let's do this again now */
if ((t = tmb.t_gett())) {
t = tmb.t_gett();
if (t && t != T_UNDEFINED) {
ps.req = msg;
trace_onreq_in(t, TMCB_REQUEST_IN, &ps);
}
Expand Down

0 comments on commit 7fa10e3

Please sign in to comment.