]> granicus.if.org Git - apache/commitdiff
Fix signedness emit.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 12 Aug 2004 17:48:35 +0000 (17:48 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 12 Aug 2004 17:48:35 +0000 (17:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104639 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 6407a6f5a21c27f8a72aaa0ef87155988a27dd30..c051822c6c88e3ffa4bf730cdc016ffe78cfb12e 100644 (file)
@@ -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