tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardServer.java
Date Wed, 07 Feb 2001 01:09:00 GMT
craigmcc    01/02/06 17:08:59

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardServer.java
  Log:
  Correct the loop control for the reversed test variation.
  
  Submitted by: John Li <lisee@21cn.com>
  PR: 401
  
  Revision  Changes    Path
  1.3       +5 -5      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java
  
  Index: StandardServer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StandardServer.java	2000/09/30 19:15:45	1.2
  +++ StandardServer.java	2001/02/07 01:08:58	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
1.2 2000/09/30 19:15:45 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/09/30 19:15:45 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
1.3 2001/02/07 01:08:58 craigmcc Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/02/07 01:08:58 $
    *
    * ====================================================================
    *
  @@ -86,7 +86,7 @@
    * (but not required) when deploying and starting Catalina.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.2 $ $Date: 2000/09/30 19:15:45 $
  + * @version $Revision: 1.3 $ $Date: 2001/02/07 01:08:58 $
    */
   
   public final class StandardServer
  @@ -390,7 +390,7 @@
   	    return (true);
   
   	// Compare the reversed form of the two addresses
  -	for (int i = 0; serverAddr.length < 4; i++) {
  +	for (int i = 0; i < serverAddr.length; i++) {
   	    if (serverAddr[i] != clientAddr[(serverAddr.length-1)-i])
   		return (false);
   	}
  
  
  

Mime
View raw message