mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-29 12:14:28 +00:00
Applied patch for cold case bug #11135.
This commit is contained in:
parent
cbe83f32b6
commit
63140ca7f8
@ -256,11 +256,12 @@ accept_function(void *arg, struct tcp_pcb *newpcb, err_t err)
|
||||
if (conn->callback)
|
||||
{
|
||||
(*conn->callback)(conn, NETCONN_EVT_RCVPLUS, 0);
|
||||
}
|
||||
/* We have to set the callback here even though
|
||||
* the new socket is unknown. Mark the socket as -1. */
|
||||
newconn->callback = conn->callback;
|
||||
newconn->socket = -1;
|
||||
}
|
||||
newconn->recv_avail = 0;
|
||||
|
||||
sys_mbox_post(mbox, newconn);
|
||||
return ERR_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user