mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-06 09:56:38 +00:00
Revert "Fixed bug #49209: netconn_drain() fails to handle 'netconn_aborted' pointer"
This reverts commit 0e2354e658
.
This commit is contained in:
parent
30251b1404
commit
d9c6badc55
@ -780,8 +780,7 @@ netconn_drain(struct netconn *conn)
|
|||||||
/* Delete and drain the acceptmbox. */
|
/* Delete and drain the acceptmbox. */
|
||||||
#if LWIP_TCP
|
#if LWIP_TCP
|
||||||
if (sys_mbox_valid(&conn->acceptmbox)) {
|
if (sys_mbox_valid(&conn->acceptmbox)) {
|
||||||
while ((sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) &&
|
while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
|
||||||
(mem != &netconn_aborted)) {
|
|
||||||
struct netconn *newconn = (struct netconn *)mem;
|
struct netconn *newconn = (struct netconn *)mem;
|
||||||
/* Only tcp pcbs have an acceptmbox, so no need to check conn->type */
|
/* Only tcp pcbs have an acceptmbox, so no need to check conn->type */
|
||||||
/* pcb might be set to NULL already by err_tcp() */
|
/* pcb might be set to NULL already by err_tcp() */
|
||||||
|
Loading…
Reference in New Issue
Block a user