summaryrefslogtreecommitdiffstats
path: root/ext/socket
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-29 08:05:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-29 08:05:32 +0000
commit5928d4c1e01a076c3c992b3a003c167a5d4b7600 (patch)
tree3e43148d3114380fff1418aa3ff6d01b157a97e4 /ext/socket
parentac9d16f8b62f24b7bb7190888b6bc28cf2e75af9 (diff)
downloadruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.tar.gz
ruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.tar.xz
ruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.zip
2000-02-29
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index e7d2300b1..7838b151a 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -519,6 +519,7 @@ ip_addrsetup(host, port)
long i = NUM2LONG(host);
mkinetaddr(htonl(i), hbuf, sizeof(hbuf));
+ hostp = hbuf;
}
else {
char *name = STR2CSTR(host);
@@ -532,8 +533,8 @@ ip_addrsetup(host, port)
else {
strcpy(hbuf, name);
}
+ hostp = hbuf;
}
- hostp = hbuf;
if (NIL_P(port)) {
portp = 0;
}