Skip to content
Snippets Groups Projects
Commit 734ada3e authored by Damien George's avatar Damien George
Browse files

extmod/modlwip: Free any incoming bufs/connections before closing PCB.

Commit 2848a613 introduced a bug where
lwip_socket_free_incoming() accessed pcb.tcp->state after the PCB was
closed.  The state may have changed due to that close call, or the PCB may
be freed and therefore invalid.  This commit fixes that by calling
lwip_socket_free_incoming() before the PCB is closed.
parent 883e987b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment