httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1755116 - /httpd/httpd/trunk/server/protocol.c
Date Wed, 03 Aug 2016 21:40:12 GMT
Author: wrowe
Date: Wed Aug  3 21:40:12 2016
New Revision: 1755116

URL: http://svn.apache.org/viewvc?rev=1755116&view=rev
Log:
C89 fix, caught by Jacob Champion

Modified:
    httpd/httpd/trunk/server/protocol.c

Modified: httpd/httpd/trunk/server/protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?rev=1755116&r1=1755115&r2=1755116&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Wed Aug  3 21:40:12 2016
@@ -837,6 +837,8 @@ AP_DECLARE(void) ap_get_mime_headers_cor
         /* Process an obs-fold immediately by appending it to last_field */
         if ((*field == '\t') || *field == ' ') {
 
+            apr_size_t fold_len;
+
             if (last_field == NULL) {
                 r->status = HTTP_BAD_REQUEST;
                 ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(03442)
@@ -851,7 +853,7 @@ AP_DECLARE(void) ap_get_mime_headers_cor
              * doing O(n) allocs and using O(n^2) space for
              * continuations that span many many lines.
              */
-            apr_size_t fold_len = last_len + len + 1; /* trailing null */
+            fold_len = last_len + len + 1; /* trailing null */
 
             if (fold_len >= (apr_size_t)(r->server->limit_req_fieldsize)) {
                 const char *field_escaped;



Mime
View raw message