Author: remy.maucherat(a)jboss.com
Date: 2009-01-02 11:05:41 -0500 (Fri, 02 Jan 2009)
New Revision: 889
Modified:
trunk/java/org/apache/catalina/startup/Catalina.java
Log:
- Filter out negative port numbers.
Modified: trunk/java/org/apache/catalina/startup/Catalina.java
===================================================================
--- trunk/java/org/apache/catalina/startup/Catalina.java 2008-12-29 11:43:18 UTC (rev
888)
+++ trunk/java/org/apache/catalina/startup/Catalina.java 2009-01-02 16:05:41 UTC (rev
889)
@@ -411,6 +411,9 @@
}
// Stop the existing server
+ if (server.getPort() < 0) {
+ return;
+ }
try {
Socket socket = new Socket(server.getAddress(), server.getPort());
OutputStream stream = socket.getOutputStream();
Show replies by date