Applied patch for cold case bug #11135.

This commit is contained in:
christiaans 2006-06-27 10:33:52 +00:00
parent cbe83f32b6
commit 63140ca7f8

View File

@ -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;
}
/* 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;