View | Details | Raw Unified | Return to bug 36780
Collapse All | Expand All

(-)server/protocol.c (-1 / +11 lines)
Lines 1323-1328 Link Here
1323
    conn_rec *c = r->connection;
1323
    conn_rec *c = r->connection;
1324
    ap_filter_t *f;
1324
    ap_filter_t *f;
1325
    old_write_filter_ctx *ctx;
1325
    old_write_filter_ctx *ctx;
1326
    apr_status_t rv;
1326
1327
1327
    if (len == 0)
1328
    if (len == 0)
1328
        return APR_SUCCESS;
1329
        return APR_SUCCESS;
Lines 1362-1368 Link Here
1362
        ctx->bb = apr_brigade_create(r->pool, c->bucket_alloc);
1363
        ctx->bb = apr_brigade_create(r->pool, c->bucket_alloc);
1363
    }
1364
    }
1364
1365
1365
    return ap_fwrite(f->next, ctx->bb, str, len);
1366
    rv = ap_fwrite(f->next, ctx->bb, str, len);
1367
    /*
1368
     * Destroy the brigade if something went wrong (possibly during
1369
     * flushing the brigade)
1370
     */
1371
    if (rv != APR_SUCCESS) {
1372
        apr_brigade_destroy(ctx->bb);
1373
        ctx->bb = NULL;
1374
    }
1375
    return rv;
1366
}
1376
}
1367
1377
1368
AP_DECLARE(int) ap_rputc(int c, request_rec *r)
1378
AP_DECLARE(int) ap_rputc(int c, request_rec *r)

Return to bug 36780