[tcplp] fix call to tcplp_sys_accept_ready() (#8327)

aAddr should be the source address not the destination address.
This commit is contained in:
Yaoxing Shan
2022-10-26 19:38:25 +08:00
committed by GitHub
parent ed31bfefb6
commit 2592e3433a
+1 -1
View File
@@ -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;