From d9c6badc551d2ce37a18a5ef6ab2bd3dd60efcb6 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 4 Oct 2016 12:27:33 +0200 Subject: [PATCH] Revert "Fixed bug #49209: netconn_drain() fails to handle 'netconn_aborted' pointer" This reverts commit 0e2354e658d9dc193d60048a8394517a41ca64ff. --- src/api/api_msg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/api_msg.c b/src/api/api_msg.c index 8b7a6bd9..9dfea64e 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -780,8 +780,7 @@ netconn_drain(struct netconn *conn) /* Delete and drain the acceptmbox. */ #if LWIP_TCP if (sys_mbox_valid(&conn->acceptmbox)) { - while ((sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) && - (mem != &netconn_aborted)) { + while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) { struct netconn *newconn = (struct netconn *)mem; /* Only tcp pcbs have an acceptmbox, so no need to check conn->type */ /* pcb might be set to NULL already by err_tcp() */