mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
fixed that lwip_netconn_do_delconn() did not set msg->err on success (just introduced that bug this weekend...)
This commit is contained in:
parent
e926a93568
commit
24df78bcbc
@ -842,7 +842,7 @@ void
|
|||||||
lwip_netconn_do_delconn(struct api_msg_msg *msg)
|
lwip_netconn_do_delconn(struct api_msg_msg *msg)
|
||||||
{
|
{
|
||||||
/* @todo TCP: abort running write/connect? */
|
/* @todo TCP: abort running write/connect? */
|
||||||
if ((msg->conn->state != NETCONN_NONE) &&
|
if ((msg->conn->state != NETCONN_NONE) &&
|
||||||
(msg->conn->state != NETCONN_LISTEN) &&
|
(msg->conn->state != NETCONN_LISTEN) &&
|
||||||
(msg->conn->state != NETCONN_CONNECT)) {
|
(msg->conn->state != NETCONN_CONNECT)) {
|
||||||
/* this only happens for TCP netconns */
|
/* this only happens for TCP netconns */
|
||||||
@ -852,6 +852,7 @@ lwip_netconn_do_delconn(struct api_msg_msg *msg)
|
|||||||
} else {
|
} else {
|
||||||
LWIP_ASSERT("blocking connect in progress",
|
LWIP_ASSERT("blocking connect in progress",
|
||||||
(msg->conn->state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn));
|
(msg->conn->state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn));
|
||||||
|
msg->err = ERR_OK;
|
||||||
/* Drain and delete mboxes */
|
/* Drain and delete mboxes */
|
||||||
netconn_drain(msg->conn);
|
netconn_drain(msg->conn);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user