From: Joe Orton Date: Wed, 29 Sep 2004 14:38:42 +0000 (+0000) Subject: * modules/http/http_protocol.c (ap_http_filter): Always fail if the X-Git-Tag: 2.1.1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c225b0dbb8bcc7e1756de9a8ce65be91abdce5;p=thirdparty%2Fapache%2Fhttpd.git * modules/http/http_protocol.c (ap_http_filter): Always fail if the Content-Length header is an empty string; previously this was only an error with some strto* implementations. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105341 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index a69609a2239..27fecaa14b6 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -773,7 +773,7 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, * string (excluding leading space) (the endstr checks) * and a negative number. */ if (apr_strtoff(&ctx->remaining, lenp, &endstr, 10) - || *endstr || ctx->remaining < 0) { + || endstr == lenp || *endstr || ctx->remaining < 0) { apr_bucket_brigade *bb; ctx->remaining = 0;