aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-12-01 14:32:26 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-12-01 14:32:26 +0000
commita1ff4c64785af6d603ed708841fdda887771e727 (patch)
tree875472443877d31dd79fc34e1a57a1b3f5c0bf8e /libjava/gnu
parent50abb28b647be1dfb36ebb8947a8d49e97112464 (diff)
downloadgcc-a1ff4c64785af6d603ed708841fdda887771e727.zip
gcc-a1ff4c64785af6d603ed708841fdda887771e727.tar.gz
gcc-a1ff4c64785af6d603ed708841fdda887771e727.tar.bz2
natPlainSocketImplPosix.cc bind (): Dont set SockedImpl.address field on succesful bind.
2003-12-01 Michael Koch <konqueror@gmx.de> * gnu/java/net/natPlainSocketImplPosix.cc bind(): Dont set SockedImpl.address field on succesful bind. * gnu/java/net/natPlainSocketImplWin32.cc bind(): Likewise. From-SVN: r74102
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/java/net/natPlainSocketImplPosix.cc1
-rw-r--r--libjava/gnu/java/net/natPlainSocketImplWin32.cc1
2 files changed, 0 insertions, 2 deletions
diff --git a/libjava/gnu/java/net/natPlainSocketImplPosix.cc b/libjava/gnu/java/net/natPlainSocketImplPosix.cc
index 9a3f7af..3163db5 100644
--- a/libjava/gnu/java/net/natPlainSocketImplPosix.cc
+++ b/libjava/gnu/java/net/natPlainSocketImplPosix.cc
@@ -117,7 +117,6 @@ gnu::java::net::PlainSocketImpl::bind (::java::net::InetAddress *host, jint lpor
if (_Jv_bind (native_fd, ptr, len) == 0)
{
- address = host;
socklen_t addrlen = sizeof(u);
if (lport != 0)
diff --git a/libjava/gnu/java/net/natPlainSocketImplWin32.cc b/libjava/gnu/java/net/natPlainSocketImplWin32.cc
index c1c813e..4ea0ca0 100644
--- a/libjava/gnu/java/net/natPlainSocketImplWin32.cc
+++ b/libjava/gnu/java/net/natPlainSocketImplWin32.cc
@@ -97,7 +97,6 @@ gnu::java::net::PlainSocketImpl::bind (::java::net::InetAddress *host, jint lpor
if (::bind (native_fd, ptr, len) != SOCKET_ERROR)
{
- address = host;
socklen_t addrlen = sizeof(u);
if (lport != 0)