Skip to content

Commit fd89470

Browse files
committed
tracer: Fix mixing between "src_ip" and "dst_ip"
Completes a13e034 Credits to James Seer for reporting this issue!
1 parent f3657e4 commit fd89470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/tracer/tracer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,10 +2148,10 @@ static int sip_trace(struct sip_msg *msg, trace_info_p info, int leg_flag)
21482148
}
21492149

21502150
set_sock_columns( db_vals[4], db_vals[5], db_vals[6], fromip_buff,
2151-
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);
2151+
&msg->rcv.src_ip, msg->rcv.src_port, msg->rcv.proto);
21522152

21532153
set_sock_columns( db_vals[7], db_vals[8], db_vals[9], toip_buff,
2154-
&msg->rcv.dst_ip, msg->rcv.dst_port, msg->rcv.proto);
2154+
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);
21552155

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

0 commit comments

Comments
 (0)