a cast since it's not possible to have a negative limit.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@124283
13f79535-47bb-0310-9956-
ffa450edef68
*/
apr_size_t fold_len = last_len + len + 1; /* trailing null */
- if (fold_len > r->server->limit_req_fieldsize + 1) {
+ if (fold_len >= (apr_size_t)(r->server->limit_req_fieldsize)) {
r->status = HTTP_BAD_REQUEST;
/* report what we have accumulated so far before the
* overflow (last_field) as the field with the problem