Skip to content

Commit

Permalink
tracer: Fix mixing between "src_ip" and "dst_ip"
Browse files Browse the repository at this point in the history
Completes a13e034

Credits to James Seer for reporting this issue!
  • Loading branch information
liviuchircu committed Jan 11, 2024
1 parent f3657e4 commit fd89470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tracer/tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2148,10 +2148,10 @@ static int sip_trace(struct sip_msg *msg, trace_info_p info, int leg_flag)
}

set_sock_columns( db_vals[4], db_vals[5], db_vals[6], fromip_buff,
msg->rcv.bind_address->adv_sock_str.len?(struct ip_addr *)&msg->rcv.bind_address->adv_address:&msg->rcv.dst_ip, msg->rcv.bind_address->adv_sock_str.len?msg->rcv.bind_address->adv_port:msg->rcv.dst_port, msg->rcv.proto);
&msg->rcv.src_ip, msg->rcv.src_port, msg->rcv.proto);

set_sock_columns( db_vals[7], db_vals[8], db_vals[9], toip_buff,
&msg->rcv.dst_ip, msg->rcv.dst_port, msg->rcv.proto);
msg->rcv.bind_address->adv_sock_str.len?(struct ip_addr *)&msg->rcv.bind_address->adv_address:&msg->rcv.dst_ip, msg->rcv.bind_address->adv_sock_str.len?msg->rcv.bind_address->adv_port:msg->rcv.dst_port, msg->rcv.proto);

db_vals[10].val.time_val = time(NULL);

Expand Down

0 comments on commit fd89470

Please sign in to comment.