From 58d1d997013c717d5b6e17d53aa44eb5940c202a Mon Sep 17 00:00:00 2001 From: Nick Moore Date: Tue, 16 Apr 2019 17:57:05 +1000 Subject: [PATCH] Fix socket.recv() buffer length from e23bad3a --- shared-bindings/socket/__init__.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-bindings/socket/__init__.c b/shared-bindings/socket/__init__.c index c59724efcf..8e34c3700a 100644 --- a/shared-bindings/socket/__init__.c +++ b/shared-bindings/socket/__init__.c @@ -248,7 +248,7 @@ STATIC mp_int_t _socket_recv_into(mod_network_socket_obj_t *sock, byte *buf, mp_ if (ret == -1) { mp_raise_OSError(_errno); } - return len; + return ret; }