# HG changeset patch # User Igor Sysoev # Date 1222961906 0 # Node ID 7155dbb2317eb6f9cb552b167b8f61b65856381f # Parent 33556140681a92184274f325c56813a89ce7301c fix r2122: *) update file buf pointers, *) avoid "zero buf" alert diff -r 33556140681a -r 7155dbb2317e src/http/modules/ngx_http_range_filter_module.c --- a/src/http/modules/ngx_http_range_filter_module.c Tue Sep 30 15:39:02 2008 +0000 +++ b/src/http/modules/ngx_http_range_filter_module.c Thu Oct 02 15:38:26 2008 +0000 @@ -654,7 +654,13 @@ ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "http range body skip"); + if (buf->in_file) { + buf->file_pos = buf->file_last; + } + buf->pos = buf->last; + buf->sync = 1; + continue; }