Skip to content
Commit 52a68bec authored by Robert Lubos's avatar Robert Lubos Committed by Christopher Friedt
Browse files

net: tcp: Verify accept callback before use



Closing a listening socket will set the accept callback to NULL.
This could lead to a crash, in case an already received packet,
finalizing the connection handshake, was processed after the socket was
closed. Thereby, it's needed to verify if the callback is actually set
before processing it.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 6324e997
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment