We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6544c89 commit 3278146Copy full SHA for 3278146
1 file changed
ext/socket/ipsocket.c
@@ -258,6 +258,7 @@ is_specified_ip_address(const char *hostname)
258
inet_pton(AF_INET, hostname, &ipv4addr) == 1);
259
}
260
261
+
262
static int
263
is_local_port_fixed(const char *portp)
264
{
@@ -269,9 +270,8 @@ is_local_port_fixed(const char *portp)
269
270
271
if (endp == portp) return 0;
272
if (errno == ERANGE) return 0;
- if (port <= 0) return 0;
273
274
- return port != 0;
+ return port > 0;
275
276
277
struct fast_fallback_inetsock_arg
0 commit comments