diff options
author | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-27 18:53:02 +0000 |
---|---|---|
committer | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-27 18:53:02 +0000 |
commit | 499ea14abbec3c57c8d848568b3c8cf0dd365cdd (patch) | |
tree | aa2c1f4fc5c57f5b435435e70ce845438dd825ba /libjava | |
parent | 16b3528573b5363a76a41cde453f7256b8f6c596 (diff) | |
download | gcc-499ea14abbec3c57c8d848568b3c8cf0dd365cdd.tar.gz |
* gnu/java/net/natPlainSocketImplPosix.cc (bind): Remove check for
null host.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132726 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/gnu/java/net/natPlainSocketImplPosix.cc | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 8358c4a04ee..788ccff4663 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2008-02-27 David Daney <ddaney@avtrex.com> + + * gnu/java/net/natPlainSocketImplPosix.cc (bind): Remove check for + null host. + 2008-02-20 Tom Tromey <tromey@redhat.com> PR libgcj/24170: diff --git a/libjava/gnu/java/net/natPlainSocketImplPosix.cc b/libjava/gnu/java/net/natPlainSocketImplPosix.cc index b4f4a851e81..e21013bf72e 100644 --- a/libjava/gnu/java/net/natPlainSocketImplPosix.cc +++ b/libjava/gnu/java/net/natPlainSocketImplPosix.cc @@ -99,12 +99,7 @@ gnu::java::net::PlainSocketImpl::bind (::java::net::InetAddress *host, jint lpor if (len == 4) { u.address.sin_family = AF_INET; - - if (host != NULL) - memcpy (&u.address.sin_addr, bytes, len); - else - u.address.sin_addr.s_addr = htonl (INADDR_ANY); - + memcpy (&u.address.sin_addr, bytes, len); len = sizeof (struct sockaddr_in); u.address.sin_port = htons (lport); } |