natPlainSocketImplPosix.cc (bind): Remove check for null host.
* gnu/java/net/natPlainSocketImplPosix.cc (bind): Remove check for null host. From-SVN: r132726
This commit is contained in:
parent
2a1ed4fcfd
commit
296746bda3
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user