mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[tcplp] fix bad memory access when refusing incoming TCP connection (#8291)
This commit is contained in:
Vendored
+1
@@ -773,6 +773,7 @@ tcp_input(struct ip6_hdr* ip6, struct tcphdr* th, otMessage* msg, struct tcpcb*
|
||||
}
|
||||
if (tp == (struct tcpcb *) -1) {
|
||||
rstreason = ECONNREFUSED;
|
||||
tp = NULL;
|
||||
goto dropwithreset;
|
||||
}
|
||||
tcp_state_change(tp, TCPS_SYN_RECEIVED);
|
||||
|
||||
Reference in New Issue
Block a user