httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r124377 - /httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c
Date Thu, 06 Jan 2005 14:16:56 GMT
Author: trawick
Date: Thu Jan  6 06:16:54 2005
New Revision: 124377

URL: http://svn.apache.org/viewcvs?view=rev&rev=124377
Log:
if last brigade of data received from client had data
and EOS, then input_brigade would be empty here

Modified:
   httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c

Modified: httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c
Url: http://svn.apache.org/viewcvs/httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c?view=diff&rev=124377&p1=httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c&r1=124376&p2=httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c&r2=124377
==============================================================================
--- httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c	(original)
+++ httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c	Thu Jan  6 06:16:54 2005
@@ -392,10 +392,12 @@
         b = header_brigade;
     }
     else {
-        /* input brigade still has an EOS which we can't pass to the output_filters. */
-        e = APR_BRIGADE_LAST(input_brigade);
-        AP_DEBUG_ASSERT(APR_BUCKET_IS_EOS(e));
-        apr_bucket_delete(e);
+        if (!APR_BRIGADE_EMPTY(input_brigade)) {
+            /* input brigade still has an EOS which we can't pass to the output_filters.
*/
+            e = APR_BRIGADE_LAST(input_brigade);
+            AP_DEBUG_ASSERT(APR_BUCKET_IS_EOS(e));
+            apr_bucket_delete(e);
+        }
         e = apr_bucket_immortal_create(ASCII_ZERO ASCII_CRLF
                                        /* <trailers> */
                                        ASCII_CRLF,

Mime
View raw message