httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1640345 - /httpd/httpd/trunk/modules/aaa/mod_authnz_fcgi.c
Date Tue, 18 Nov 2014 13:53:25 GMT
Author: ylavic
Date: Tue Nov 18 13:53:24 2014
New Revision: 1640345

URL: http://svn.apache.org/r1640345
Log:
mod_authnz_fcgi: we don't need to reserve an extra response header byte since r1640036.

Modified:
    httpd/httpd/trunk/modules/aaa/mod_authnz_fcgi.c

Modified: httpd/httpd/trunk/modules/aaa/mod_authnz_fcgi.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authnz_fcgi.c?rev=1640345&r1=1640344&r2=1640345&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authnz_fcgi.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authnz_fcgi.c Tue Nov 18 13:53:24 2014
@@ -491,7 +491,7 @@ static apr_status_t handle_response(cons
         apr_size_t readbuflen;
         apr_uint16_t clen;
         apr_uint16_t rid;
-        char readbuf[AP_IOBUFSIZE + 1];
+        char readbuf[AP_IOBUFSIZE];
         unsigned char farray[AP_FCGI_HEADER_LEN];
         unsigned char plen;
         unsigned char type;
@@ -527,8 +527,8 @@ static apr_status_t handle_response(cons
 
     recv_again: /* if we need to keep reading more of a record's content */
 
-        if (clen > sizeof(readbuf) - 1) {
-            readbuflen = sizeof(readbuf) - 1;
+        if (clen > sizeof(readbuf)) {
+            readbuflen = sizeof(readbuf);
         } else {
             readbuflen = clen;
         }
@@ -541,7 +541,6 @@ static apr_status_t handle_response(cons
             if (rv != APR_SUCCESS) {
                 break;
             }
-            readbuf[readbuflen] = '\0';
         }
 
         switch (type) {



Mime
View raw message