[riot-notifications] [RIOT-OS/RIOT] nanocoap: fix sock_udp return value checks (#10726)

nmeum notifications at github.com
Tue Jan 8 19:03:41 CET 2019

nmeum commented on this pull request.

>          return -1;
     while (1) {
         res = sock_udp_recv(&sock, buf, bufsize, -1, &remote);
-        if (res == -1) {
+        if (res < 0) {

I initially didn't want to change the handling of the zero return value. I just changed this nonetheless.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190108/97b2c321/attachment-0001.html>

More information about the notifications mailing list