Fixed bug in do_delcon (set tcp_arg to NULL)

This commit is contained in:
kieranm 2003-03-31 09:35:47 +00:00
parent a5be8fe82c
commit 01a53d955e

View File

@ -258,6 +258,7 @@ do_delconn(struct api_msg_msg *msg)
#if LWIP_TCP
case NETCONN_TCP:
if(msg->conn->pcb.tcp->state == LISTEN) {
tcp_arg(msg->conn->pcb.tcp, NULL);
tcp_accept(msg->conn->pcb.tcp, NULL);
tcp_close(msg->conn->pcb.tcp);
} else {