From 63140ca7f8dbd9923c5a915653b24736767b63b5 Mon Sep 17 00:00:00 2001 From: christiaans Date: Tue, 27 Jun 2006 10:33:52 +0000 Subject: [PATCH] Applied patch for cold case bug #11135. --- src/api/api_msg.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/api/api_msg.c b/src/api/api_msg.c index 25d34048..f2c4f44f 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -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;