[kaffe] CVS kaffe (guilhem): Small fix for ServerSocket.bind (freenet concerned)

Kaffe CVS cvs-commits at kaffe.org
Wed Dec 24 07:35:02 PST 2003


PatchSet 4235 
Date: 2003/12/24 15:32:08
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Small fix for ServerSocket.bind (freenet concerned)

Members: 
	ChangeLog:1.1824->1.1825 
	libraries/javalib/java/net/ServerSocket.java:1.19->1.20 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1824 kaffe/ChangeLog:1.1825
--- kaffe/ChangeLog:1.1824	Tue Dec 23 20:18:40 2003
+++ kaffe/ChangeLog	Wed Dec 24 15:32:08 2003
@@ -1,3 +1,8 @@
+2003-12-24  Guilhem Lavaux <guilhem at kaffe.org>
+
+	* libraries/javalib/java/net/ServerSocket.java
+	(bind): Check whether the address to bind to is null.
+
 2003-12-23  Guilhem Lavaux <guilhem at kaffe.org>
 
 	* libraries/javalib/kjc.jar: Regenerated a new KJC
Index: kaffe/libraries/javalib/java/net/ServerSocket.java
diff -u kaffe/libraries/javalib/java/net/ServerSocket.java:1.19 kaffe/libraries/javalib/java/net/ServerSocket.java:1.20
--- kaffe/libraries/javalib/java/net/ServerSocket.java:1.19	Wed Dec  3 23:18:04 2003
+++ kaffe/libraries/javalib/java/net/ServerSocket.java	Wed Dec 24 15:32:07 2003
@@ -228,7 +228,10 @@
 
     try
       {
-	impl.bind (tmp.getAddress (), tmp.getPort ());
+	if (tmp.getAddress () != null)
+	  impl.bind (tmp.getAddress (), tmp.getPort ());
+	else
+	  impl.bind (InetAddress.ANY_IF, tmp.getPort ());
 	impl.listen(backlog);
 	bound = true;
       }




More information about the kaffe mailing list