From 2592e3433a178e8441eaafbb6efdf6396067f2a4 Mon Sep 17 00:00:00 2001 From: Yaoxing Shan Date: Wed, 26 Oct 2022 19:38:25 +0800 Subject: [PATCH] [tcplp] fix call to tcplp_sys_accept_ready() (#8327) aAddr should be the source address not the destination address. --- third_party/tcplp/bsdtcp/tcp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/tcplp/bsdtcp/tcp_input.c b/third_party/tcplp/bsdtcp/tcp_input.c index 9f87f7f8d..acd933cde 100644 --- a/third_party/tcplp/bsdtcp/tcp_input.c +++ b/third_party/tcplp/bsdtcp/tcp_input.c @@ -766,7 +766,7 @@ tcp_input(struct ip6_hdr* ip6, struct tcphdr* th, otMessage* msg, struct tcpcb* */ tcp_dooptions(&to, optp, optlen, TO_SYN); - tp = tcplp_sys_accept_ready(tpl, &ip6->ip6_dst, th->th_sport); // Try to allocate an active socket to accept into + tp = tcplp_sys_accept_ready(tpl, &ip6->ip6_src, th->th_sport); // Try to allocate an active socket to accept into if (tp == NULL) { /* If we couldn't allocate, just ignore the SYN. */ return IPPROTO_DONE;