Skip to content

Commit

Permalink
[tracer] remove useless line, pron to crashes
Browse files Browse the repository at this point in the history
Setting the tracing info into the processing context here is useless as none of the following funcions are using /accessing this context.
Even more, there are cases (like tracing an UAC b2b transaction triggered by a b2b timeout) where there is not processing context set (so crashing).
  • Loading branch information
bogdan-iancu committed Jul 10, 2024
1 parent 42ebe1d commit 759d08f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/tracer/tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,9 +1427,6 @@ static int trace_b2b_transaction(struct sip_msg* msg, void *trans, void* param)
trace_info_p info = (trace_info_p)param;
struct cell *t = (struct cell*)trans;

/* context for the request message */
SET_TRACER_CONTEXT( info );

if (t==T_UNDEFINED) {
/* Negative hop-by-hop ACK shouldn't be here */
LM_BUG("undefined transaction received here\n");
Expand Down

0 comments on commit 759d08f

Please sign in to comment.