From: Stefan Fritsch Date: Sun, 9 Oct 2011 19:00:51 +0000 (+0000) Subject: Force base 10 when parsing the Content-Length. It doesn't matter in this X-Git-Tag: 2.3.15~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69be927748f5a6f9b932b586e20c217cf1aacd19;p=thirdparty%2Fapache%2Fhttpd.git Force base 10 when parsing the Content-Length. It doesn't matter in this 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 --- diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 3cc90ab7676..0a9fbc97c3d 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -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