Commit c261e080 by Warren Levy Committed by Warren Levy

DatagramSocket.java (DatagramSocket(int,InetAddress)): Handle null addresses.

	* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
	  Handle null addresses.

From-SVN: r32339
parent 5a43052b
2000-03-05 Warren Levy <warrenl@cygnus.com>
* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
Handle null addresses.
2000-03-04 Anthony Green <green@redhat.com>
* configure.host (libgcj_flags): Define __NO_MATH_INLINES.
......
// DatagramSocket.java
/* Copyright (C) 1999 Red Hat, Inc.
/* Copyright (C) 1999, 2000 Red Hat, Inc.
This file is part of libgcj.
......@@ -66,7 +66,7 @@ public class DatagramSocket
if (this instanceof MulticastSocket)
impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(true));
impl.bind(port, laddr);
impl.bind(port, laddr == null ? ServerSocket.ANY_IF : laddr);
}
public void close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment