]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
core: core ouput filter iovec vs brigade consistency assertion.
authorYann Ylavic <ylavic@apache.org>
Fri, 20 Aug 2021 09:10:55 +0000 (09:10 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 20 Aug 2021 09:10:55 +0000 (09:10 +0000)
* server/core_filters.c (writev_nonblocking):
  Assert that a bucket is always bound to the walked iovec.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892467 13f79535-47bb-0310-9956-ffa450edef68

server/core_filters.c

index 5868539ec87b41a4fdc02db5e864062edf45cc56..c0275dc0de8aa7de1af33943f452c4ce5f86a335 100644 (file)
@@ -647,6 +647,7 @@ static apr_status_t writev_nonblocking(apr_socket_t *s,
 
         for (i = offset; i < nvec; ) {
             apr_bucket *bucket = APR_BRIGADE_FIRST(bb);
+            ap_assert(bucket != APR_BRIGADE_SENTINEL(bb));
             if (!bucket->length) {
                 delete_meta_bucket(bucket);
             }