httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject calling ap_get_brigade with nonempty brigade
Date Sun, 08 Jun 2003 23:43:57 GMT

ap_http_filter seems to assume it will receive an empty 
brigade from its caller. The problem is around lines 
1028 - 1035 in http_protocol.c:

    rv = ap_get_brigade(f->next, b, mode, block, readbytes);

    if (rv != APR_SUCCESS) {
        return rv;
    }

    /* How many bytes did we just read? */
    apr_brigade_length(b, 0, &totalread);

totalread is only accurate in this context if b was 
empty to begin with.  Is this is a bug in ap_http_filter?

-- 
Joe Schaefer


Mime
View raw message