Commit 378bcdf5 authored by Jim Jagielski's avatar Jim Jagielski
Browse files

Remove some merging fun between Rüdiger and my patches ;)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1161563 13f79535-47bb-0310-9956-ffa450edef68
parent 51703b53
Loading
Loading
Loading
Loading
+3 −11
Changes for modules/http/byterange_filter.c: 3 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -153,17 +153,6 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb,
    apr_uint64_t start64, end64;
    apr_off_t pofft;

    /*
     * ala apr_brigade_partition(), reduce casting hell...
     * we know that apr_off_t and apr_size_t will fit into
     * apr_uint64_t.
     */
    start64 = (apr_uint64_t)start;
    end64 = (apr_uint64_t)end;

    if (start < 0 || start64 > end64)
        return APR_EINVAL;

    /*
     * We know that start and end are >= 0. See the comments in
     * apr_brigade_partition why we should convert everything
@@ -173,6 +162,9 @@ static apr_status_t copy_brigade_range(apr_bucket_brigade *bb,
    start64 = (apr_uint64_t)start;
    end64 = (apr_uint64_t)end;

    if (start < 0 || start64 > end64)
        return APR_EINVAL;

    for (e = APR_BRIGADE_FIRST(bb);
         e != APR_BRIGADE_SENTINEL(bb);
         e = APR_BUCKET_NEXT(e))