]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix iteration
authorEric Covener <covener@apache.org>
Fri, 5 Jun 2026 10:00:53 +0000 (10:00 +0000)
committerEric Covener <covener@apache.org>
Fri, 5 Jun 2026 10:00:53 +0000 (10:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935003 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_ftp.c

index 5e9ff71d874b30f650d8f8ee343ead4127d3ebfb..d535d2415d40eeacb9218bdc16a64ed5ccdf7256 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",