Revert "Fixed bug #49209: netconn_drain() fails to handle 'netconn_aborted' pointer"

This reverts commit 0e2354e658.
This commit is contained in:
goldsimon 2016-10-04 12:27:33 +02:00
parent 30251b1404
commit d9c6badc55

View File

@ -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() */