Skip to content

Commit

Permalink
Fix crash when restore b2b with tracer enabled due to NULL msg
Browse files Browse the repository at this point in the history
  • Loading branch information
truong-hua authored and liviuchircu committed Jan 18, 2023
1 parent 6e112e1 commit c41a058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/b2b_logic/records.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ b2bl_tuple_t* b2bl_insert_new(struct sip_msg* msg, unsigned int hash_index,
tuple->req_routeid = init_params->req_routeid;
tuple->reply_routeid = init_params->reply_routeid;

if (set_tracer_func && msg->msg_flags&tracer_msg_flag_filter)
if (set_tracer_func && msg && msg->msg_flags&tracer_msg_flag_filter)
tuple->tracer = *set_tracer_func();

b2bl_run_new_tuple_cb(tuple->key);
Expand Down

0 comments on commit c41a058

Please sign in to comment.