[riot-notifications] [RIOT-OS/RIOT] posix_sockets.c: fix send() for connected UDP sockets (#11364)

obgm notifications at github.com
Wed Apr 10 10:51:27 CEST 2019


Good point, this even allows for a much cleaner fix. I now have modified the fix to call `_sockaddr_to_ep()` in `socket_sendto()` only if `address != NULL` (for datagram sockets) and call `sock_udp_get_remote()` otherwise.

As `sock_udp_get_remote()` requires a `sock_udp_t *` as its first argument, this part has been moved into the switch-case `SOCK_DGRAM`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11364#issuecomment-481601482
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190410/78e00745/attachment-0001.html>


More information about the notifications mailing list