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

(-)apr-util-1.6/buckets/apr_brigade.c (-1 / +3 lines)
Lines 325-331 Link Here
325
        pos = memchr(str, APR_ASCII_LF, len);
325
        pos = memchr(str, APR_ASCII_LF, len);
326
        /* We found a match. */
326
        /* We found a match. */
327
        if (pos != NULL) {
327
        if (pos != NULL) {
328
            apr_bucket_split(e, pos - str + 1);
328
            if ((pos - str + 1) < e->length) {
329
                apr_bucket_split(e, pos - str + 1);
330
            }
329
            APR_BUCKET_REMOVE(e);
331
            APR_BUCKET_REMOVE(e);
330
            APR_BRIGADE_INSERT_TAIL(bbOut, e);
332
            APR_BRIGADE_INSERT_TAIL(bbOut, e);
331
            return APR_SUCCESS;
333
            return APR_SUCCESS;

Return to bug 64273