httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ic...@apache.org
Subject svn commit: r1745175 - /httpd/httpd/trunk/modules/http2/h2_bucket_beam.c
Date Mon, 23 May 2016 12:37:53 GMT
Author: icing
Date: Mon May 23 12:37:53 2016
New Revision: 1745175

URL: http://svn.apache.org/viewvc?rev=1745175&view=rev
Log:
mod_http2: fix possible null pointer deref in bucket beams on receive

Modified:
    httpd/httpd/trunk/modules/http2/h2_bucket_beam.c

Modified: httpd/httpd/trunk/modules/http2/h2_bucket_beam.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_bucket_beam.c?rev=1745175&r1=1745174&r2=1745175&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/h2_bucket_beam.c (original)
+++ httpd/httpd/trunk/modules/http2/h2_bucket_beam.c Mon May 23 12:37:53 2016
@@ -738,7 +738,7 @@ apr_status_t h2_beam_receive(h2_bucket_b
     if (enter_yellow(beam, &bl) == APR_SUCCESS) {
 transfer:
         if (beam->aborted) {
-            if (!APR_BRIGADE_EMPTY(beam->green)) {
+            if (beam->green && !APR_BRIGADE_EMPTY(beam->green)) {
                 apr_brigade_cleanup(beam->green);
             }
             status = APR_ECONNABORTED;



Mime
View raw message