]> granicus.if.org Git - apache/commitdiff
Force base 10 when parsing the Content-Length. It doesn't matter in this
authorStefan Fritsch <sf@apache.org>
Sun, 9 Oct 2011 19:00:51 +0000 (19:00 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 9 Oct 2011 19:00:51 +0000 (19:00 +0000)
case, but in general using strto*(..., 0) for parsing HTTP headers is a bug.

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

modules/proxy/mod_proxy.c

index 3cc90ab76761658d24a71b49507d59cf2e17c94c..0a9fbc97c3df73e7eee4d61c51ef2c0e1316b475 100644 (file)
@@ -1011,7 +1011,7 @@ static int proxy_handler(request_rec *r)
                         }
                         cl_a = apr_table_get(r->headers_in, "Content-Length");
                         if (cl_a) {
-                            apr_strtoff(&cl, cl_a, &end, 0);
+                            apr_strtoff(&cl, cl_a, &end, 10);
                             /*
                              * The request body is of length > 0. We cannot
                              * retry with a direct connection since we already