From 52c225b0dbb8bcc7e1756de9a8ce65be91abdce5 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Wed, 29 Sep 2004 14:38:42 +0000 Subject: [PATCH] * 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 --- modules/http/http_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2