Module: kamailio
Branch: master
Commit: 70929caac33583ae1026234ca999cc90afcb6f4c
URL:
https://github.com/kamailio/kamailio/commit/70929caac33583ae1026234ca999cc9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2020-04-28T15:57:29+02:00
Merge pull request #2305 from dsciarra/do-not-use-tcp-id-for-lookup
core: do not use tcp id for lookup if not needed
---
Modified: src/core/tcp_main.c
---
Diff:
https://github.com/kamailio/kamailio/commit/70929caac33583ae1026234ca999cc9…
Patch:
https://github.com/kamailio/kamailio/commit/70929caac33583ae1026234ca999cc9…
---
diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c
index e57a29d99e..89e3b56b7c 100644
--- a/src/core/tcp_main.c
+++ b/src/core/tcp_main.c
@@ -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);
}