Skip to content
Commit 49f35f3a authored by Daniel Nejezchleb's avatar Daniel Nejezchleb Committed by Christopher Friedt
Browse files

net: sockets: Fixes net_pkt leak in accept



Fix net_pkt leak by increasing net_context the reference count earlier
in the zsock_accepted_cb() with instalment of the
zsock_received_cb() callback.

And consequently flushing recv_q and decrement net_context
reference count if zsock_accept_ctx() fails.

Signed-off-by: default avatarDaniel Nejezchleb <dnejezchleb@hwg.cz>
parent 13571c41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment