diff options
author | Yann Ylavic <ylavic@apache.org> | 2021-08-20 11:10:55 +0200 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2021-08-20 11:10:55 +0200 |
commit | 8f8793bcc6e5b3c369d336c148003ba1f63df606 (patch) | |
tree | 41c730fbbe6f7557464a93901e34b03653d342f3 | |
parent | core: core output filter to cleanup empty/meta buckets following data, ASAP. (diff) | |
download | apache2-8f8793bcc6e5b3c369d336c148003ba1f63df606.tar.xz apache2-8f8793bcc6e5b3c369d336c148003ba1f63df606.zip |
core: core ouput filter iovec vs brigade consistency assertion.
* 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
-rw-r--r-- | server/core_filters.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/core_filters.c b/server/core_filters.c index 5868539ec8..c0275dc0de 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -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); } |