]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1935003 from trunk:
authorEric Covener <covener@apache.org>
Fri, 5 Jun 2026 10:01:52 +0000 (10:01 +0000)
committerEric Covener <covener@apache.org>
Fri, 5 Jun 2026 10:01:52 +0000 (10:01 +0000)
fix iteration

Reviewed By:covener, jorton, jfclere, jailletc36

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1935004 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_ftp.c

index e77b91aea0259669e602bad5724f2803862183c7..ad13f7097ecfb933a0074412c51730541faef9ee 100644 (file)
@@ -1206,10 +1206,12 @@ static int proxy_ftp_handler(request_rec *r, proxy_worker *worker,
         time_t secs;
 
         /* Look for a number, preceded by whitespace */
-        while (*secs_str)
+        while (*secs_str) {
             if ((secs_str==ftpmessage || apr_isspace(secs_str[-1])) &&
                 apr_isdigit(secs_str[0]))
                 break;
+            secs_str++;
+        }
         if (*secs_str != '\0') {
             secs = atol(secs_str);
             apr_table_addn(r->headers_out, "Retry-After",