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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user