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:
Aska Wu <aska.wu@linaro.org>
Loading
Please sign in to comment