aboutsummaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorDamien George2018-07-20 12:59:24 +1000
committerDamien George2018-07-20 12:59:24 +1000
commit4a2051eec7f60c4a05822da540f763c5bc1775b1 (patch)
tree1e2c4be1cbeac852f4568c7fe2f0f6694f53fd81 /docs/reference
parent055ee1891977f7ce43c99c6fb31b9a15ee22896f (diff)
extmod/modlwip: Deregister all lwIP callbacks when closing a socket.
Otherwise they may be called on a socket that no longer exists. For example, if the GC calls the finaliser on the socket and then reuses its heap memory, the "callback" entry of the old socket may contain invalid data. If lwIP then calls the TCP callback the code may try to call the user callback object which is now invalid. The lwIP callbacks must be deregistered during the closing of the socket, before all the pcb pointers are set to NULL.
Diffstat (limited to 'docs/reference')
0 files changed, 0 insertions, 0 deletions