From: William A. Rowe Jr Date: Thu, 12 Aug 2004 17:48:35 +0000 (+0000) Subject: Fix signedness emit. X-Git-Tag: STRIKER_2_1_0_RC1~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef0c43088fe64963b7e4db266f39a64177a7fc4f;p=apache Fix signedness emit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104639 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 6407a6f5a2..c051822c6c 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -717,7 +717,7 @@ AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb */ apr_size_t fold_len = last_len + len + 1; /* trailing null */ - if ((fold_len - 1) > r->server->limit_req_fieldsize) { + if (fold_len > r->server->limit_req_fieldsize + 1) { r->status = HTTP_BAD_REQUEST; /* report what we have accumulated so far before the * overflow (last_field) as the field with the problem