diff options
author | Damien George <damien.p.george@gmail.com> | 2019-02-18 14:23:35 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-02-18 14:23:35 +1100 |
commit | 42c0e440b9635fb33c0b2a162f5bfe3122dce079 (patch) | |
tree | 01720d5bb8487c2a145a8cf10c03926736fd76c8 /lib/netutils/netutils.c | |
parent | c65e5c88b8ec805d40a4b040a56569f8b1aa8bab (diff) |
extmod/modlwip: Fix bug when polling listening socket with backlog=1.
The bug polling for readability was: if alloc==0 and tcp.item==NULL then
the code would incorrectly check tcp.array[iget] which is an invalid
dereference when alloc==0. This patch refactors the code to use a helper
function lwip_socket_incoming_array() to return the correct pointer for the
incomming connection array.
Fixes issue #4511.
Diffstat (limited to 'lib/netutils/netutils.c')
0 files changed, 0 insertions, 0 deletions