mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 15:16:03 +00:00
fixed bug #47743 (Closing listening tcp pcb is not posible without assert)
This commit is contained in:
parent
afd1bb938e
commit
afd9ee9147
@ -294,8 +294,8 @@ tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data)
|
|||||||
break;
|
break;
|
||||||
case LISTEN:
|
case LISTEN:
|
||||||
err = ERR_OK;
|
err = ERR_OK;
|
||||||
tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb);
|
|
||||||
tcp_listen_closed(pcb);
|
tcp_listen_closed(pcb);
|
||||||
|
tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb);
|
||||||
memp_free(MEMP_TCP_PCB_LISTEN, pcb);
|
memp_free(MEMP_TCP_PCB_LISTEN, pcb);
|
||||||
pcb = NULL;
|
pcb = NULL;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user