Skip to content
Commit 5925112e authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Carles Cufí
Browse files

net: sockets: Preserve user_data for any net_context send() or recv()



We use ctx->user_data to hold socket flags. As each call to
net_context_recv() and net_context_send() overwrites its previous
value, we explicitly must pass the current ctx value there.

Without this, non-blocking socket was turned into blocking after
e.g. switching from receiving to sending.

Fixes: #6309

Signed-off-by: default avatarPaul Sokolovsky <paul.sokolovsky@linaro.org>
parent 934195cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment