httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/server core.c
Date Fri, 08 Jun 2001 16:39:51 GMT
rbb         01/06/08 09:39:51

  Modified:    server   core.c
  Log:
  We need to increment i during this for loop.  Without this change, we will
  end up in an infinite loop.
  Submitted by:	Ryan Morgan
  
  Revision  Changes    Path
  1.17      +1 -1      httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -d -b -w -u -r1.16 -r1.17
  --- core.c	2001/05/06 23:27:13	1.16
  +++ core.c	2001/06/08 16:39:48	1.17
  @@ -1491,7 +1491,7 @@
   	    else if ((cmd->limited_xmethods != NULL)
   		     && (cmd->limited_xmethods->nelts != 0)) {
   		xmethod = (char **) cmd->limited_xmethods->elts;
  -		for (i = 0; i < cmd->limited_xmethods->nelts; ) {
  +		for (i = 0; i < cmd->limited_xmethods->nelts; i++) {
   		    if (strcmp(xmethod[i], method) == 0) {
   			for (j = i, k = i + 1;
   			     k < cmd->limited_xmethods->nelts;
  
  
  

Mime
View raw message