From 60022e16871643077c50fd2a1152607a3113aa35 Mon Sep 17 00:00:00 2001 From: christiaans Date: Wed, 12 Oct 2005 11:03:58 +0000 Subject: [PATCH] Increased availability by removing TCP active-close show-stopper. Leaving pbuf memory leak in for now. --- ports/unix/proj/minimal/echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/unix/proj/minimal/echo.c b/ports/unix/proj/minimal/echo.c index 11363a6..ef2d065 100644 --- a/ports/unix/proj/minimal/echo.c +++ b/ports/unix/proj/minimal/echo.c @@ -132,7 +132,7 @@ echo_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) es = arg; - if (p == NULL) { + if ((es == NULL) || (p == NULL)) { close_conn(pcb, es); return ERR_OK; }