]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
r582635 was an INCORRECT backport of r581117 (my fault).
authorNick Kew <niq@apache.org>
Sun, 9 Dec 2007 18:39:06 +0000 (18:39 +0000)
committerNick Kew <niq@apache.org>
Sun, 9 Dec 2007 18:39:06 +0000 (18:39 +0000)
This corrects the error, bringing it in line with 581117
and the vote that was taken on that release.

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

modules/proxy/mod_proxy.c

index 67d1262e16985dde0a0ca91f6928ce29827de063..1a4b48fae21aba51e371ea5f5579ea6b8152eafe 100644 (file)
@@ -719,9 +719,9 @@ static int proxy_handler(request_rec *r)
         /* set configured max-forwards */
         maxfwd = conf->maxfwd;
     }
-    if (maxfwd > 0) {
+    if (maxfwd >= 0) {
         apr_table_set(r->headers_in, "Max-Forwards",
-                      apr_psprintf(r->pool, "%ld", (maxfwd > 0) ? maxfwd : 0));
+                      apr_psprintf(r->pool, "%ld", maxfwd));
     }
 
     if (r->method_number == M_TRACE) {