mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-27 00:22:59 +00:00
Fixed bug in do_delcon (set tcp_arg to NULL)
This commit is contained in:
parent
a5be8fe82c
commit
01a53d955e
@ -258,6 +258,7 @@ do_delconn(struct api_msg_msg *msg)
|
|||||||
#if LWIP_TCP
|
#if LWIP_TCP
|
||||||
case NETCONN_TCP:
|
case NETCONN_TCP:
|
||||||
if(msg->conn->pcb.tcp->state == LISTEN) {
|
if(msg->conn->pcb.tcp->state == LISTEN) {
|
||||||
|
tcp_arg(msg->conn->pcb.tcp, NULL);
|
||||||
tcp_accept(msg->conn->pcb.tcp, NULL);
|
tcp_accept(msg->conn->pcb.tcp, NULL);
|
||||||
tcp_close(msg->conn->pcb.tcp);
|
tcp_close(msg->conn->pcb.tcp);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user