Pico w: socket: Correctly return negative error code from recv_into
This commit is contained in:
parent
62cbd3bcd8
commit
ca9523b814
@ -1080,6 +1080,9 @@ int socketpool_socket_recv_into(socketpool_socket_obj_t *socket,
|
||||
ret = lwip_raw_udp_receive(socket, (byte *)buf, len, NULL, NULL, &_errno);
|
||||
break;
|
||||
}
|
||||
if (ret < 0) {
|
||||
return -_errno;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user