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