Skip to content

Commit

Permalink
core: do not use tcp id for lookup if not needed
Browse files Browse the repository at this point in the history
In case the first lookup (with tcp id) is not successfull, the second
attempt should have been performed without a tcp id.
Issue was introduced with dc43750 (new global parameter
tcp_connection_match) in 5.3.
  • Loading branch information
Donato Sciarra committed Apr 28, 2020
1 parent c9468fe commit 24a3a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/tcp_main.c
Expand Up @@ -1967,7 +1967,7 @@ int tcp_send(struct dest_info* dst, union sockaddr_union* from,
if (likely(port)){
/* try again w/o id */
if(tcp_connection_match==TCPCONN_MATCH_STRICT) {
c=tcpconn_lookup(dst->id, &ip, port, from, try_local_port, con_lifetime);
c=tcpconn_lookup(0, &ip, port, from, try_local_port, con_lifetime);
} else {
c=tcpconn_get(0, &ip, port, from, con_lifetime);
}
Expand Down

0 comments on commit 24a3a17

Please sign in to comment.