and b points to the sentinel of ctx->proc_bb and not the sentinel of bb.
(Similar fix as r910326)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@924452
13f79535-47bb-0310-9956-
ffa450edef68
if (!APR_BRIGADE_EMPTY(ctx->bb)) {
apr_bucket *b = NULL;
if (!APR_BRIGADE_EMPTY(ctx->bb)) {
apr_bucket *b = NULL;
- /* This may return APR_INCOMPLETE which should be fine */
- apr_brigade_partition(ctx->bb, readbytes, &b);
-
- APR_BRIGADE_CONCAT(bb, ctx->bb);
- apr_brigade_split_ex(bb, b, ctx->bb);
+ if (apr_brigade_partition(ctx->bb, readbytes, &b) == APR_INCOMPLETE) {
+ APR_BRIGADE_CONCAT(bb, ctx->bb);
+ }
+ else {
+ APR_BRIGADE_CONCAT(bb, ctx->bb);
+ apr_brigade_split_ex(bb, b, ctx->bb);
+ }