Skip to content

Commit 4d56785

Browse files
committed
remove impossible code for rangechecking of socket proto arg
1 parent 5763844 commit 4d56785

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

shared-bindings/socketpool/SocketPool.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ static mp_obj_t socketpool_socketpool_socket(size_t n_args, const mp_obj_t *pos_
103103
socketpool_socketpool_sock_t type = args[ARG_type].u_int;
104104
socketpool_socketpool_ipproto_t proto = args[ARG_proto].u_int;
105105

106-
if (proto < 0) {
107-
proto = 0;
108-
}
109-
110106
return common_hal_socketpool_socket(self, family, type, proto);
111107
}
112108
MP_DEFINE_CONST_FUN_OBJ_KW(socketpool_socketpool_socket_obj, 1, socketpool_socketpool_socket);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy