]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
We need to increment i during this for loop. Without this change, we will
authorRyan Bloom <rbb@apache.org>
Fri, 8 Jun 2001 16:39:48 +0000 (16:39 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 8 Jun 2001 16:39:48 +0000 (16:39 +0000)
end up in an infinite loop.
Submitted by: Ryan Morgan

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89309 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 18661e1b93b3b83f899c3cf208a5f54e159ede83..51d84a91e4c14c0cd53a1b9b3cb942b90499047b 100644 (file)
@@ -1491,7 +1491,7 @@ AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, void *dumm
            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;