diff options
author | Damien George <damien.p.george@gmail.com> | 2019-05-29 01:24:43 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-05-29 01:24:43 +1000 |
commit | 734ada3e2980d1bbf5c7a1ea5c624b34be16dfa9 (patch) | |
tree | b9c9447e265610d6c8c52b45a993403782d79290 /py/objfun.c | |
parent | 883e987b90e82f0a9ab223910890da2c5d50b9d3 (diff) |
extmod/modlwip: Free any incoming bufs/connections before closing PCB.
Commit 2848a613ac61fce209962354c2698ee587a2c26a 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.
Diffstat (limited to 'py/objfun.c')
0 files changed, 0 insertions, 0 deletions