mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[tcplp] fix call to tcplp_sys_accept_ready() (#8327)
aAddr should be the source address not the destination address.
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user