mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
api_msg.c: fix wrong mailbox invalidate (NULL was used instead of SYS_MBOX_NULL). Spoted by Silas Boyd-Wickizer.
This commit is contained in:
parent
90cb4b4e09
commit
7774b57a1c
@ -831,7 +831,7 @@ do_listen(struct api_msg_msg *msg)
|
||||
if (msg->conn->recvmbox != SYS_MBOX_NULL) {
|
||||
/** @todo: should we drain the recvmbox here? */
|
||||
sys_mbox_free(msg->conn->recvmbox);
|
||||
msg->conn->recvmbox = NULL;
|
||||
msg->conn->recvmbox = SYS_MBOX_NULL;
|
||||
}
|
||||
if (msg->conn->acceptmbox == SYS_MBOX_NULL) {
|
||||
if ((msg->conn->acceptmbox = sys_mbox_new(DEFAULT_ACCEPTMBOX_SIZE)) == SYS_MBOX_NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user