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

Sebastian Meiling notifications at github.com
Wed Jan 9 08:52:38 CET 2019


smlng commented on this pull request.



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

thx

-- 
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/10726#discussion_r246285028
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190108/a5c96133/attachment-0001.html>


More information about the notifications mailing list