Skip to content
Commit 63290411 authored by Aska Wu's avatar Aska Wu Committed by Anas Nashif
Browse files

net: sockets: Fix the error zsock_send() failed on the datagram socket



net_context_sendto() returns an error if dest address is NULL.

If dest address is available, net_conext_sendto() should be used.
Otherwise, net_context_send() should be used.

Fixes #4347

Signed-off-by: default avatarAska Wu <aska.wu@linaro.org>
parent 1d362253
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment