1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

* 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
This commit is contained in:
Joe Orton
2004-09-29 14:38:42 +00:00
parent 7d2caa8d9b
commit 52c225b0db

View File

@@ -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;