summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/socket.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index a2bf610..1e36113 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -895,16 +895,11 @@ tcp_s_open(argc, argv, class)
&local_host, &local_serv);
Check_SafeStr(remote_host);
-
if (!NIL_P(local_host)) {
Check_SafeStr(local_host);
}
- if (NIL_P(local_serv)) {
- local_serv = INT2NUM(0);
- }
-
return open_inet(class, remote_host, remote_serv,
local_host, local_serv, INET_CLIENT);
}