Skip to content

Commit

Permalink
proto_tcp: fix possible crash when looking up connection
Browse files Browse the repository at this point in the history
Reported by Adrien Martin in #2369

(cherry picked from commit 2fe15bb)
  • Loading branch information
rvlad-patrascu committed Jan 18, 2021
1 parent 15d0530 commit 8ec5a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/proto_tcp/proto_tcp.c
Expand Up @@ -781,7 +781,7 @@ static int proto_tcp_send(struct socket_info* send_sock,
port=su_getport(to);
n = tcp_conn_get(id, &ip, port, PROTO_TCP, NULL, &c, &fd);
}else if (id){
n = tcp_conn_get(id, 0, 0, PROTO_NONE, &c, NULL, &fd);
n = tcp_conn_get(id, 0, 0, PROTO_NONE, NULL, &c, &fd);
}else{
LM_CRIT("tcp_send called with null id & to\n");
get_time_difference(get,tcpthreshold,tcp_timeout_con_get);
Expand Down

0 comments on commit 8ec5a12

Please sign in to comment.