diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2018-12-24 21:07:05 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2018-12-24 21:07:05 +0300 |
commit | aa741f87273f2137d9a52080593c5fe6f1d1b0ea (patch) | |
tree | 910786fc8f33014c148afcce1246214d3f1317e2 /src/http/modules/ngx_http_random_index_module.c | |
parent | 499bb2655ee16e4659d571b413b1ea54fd19dcd1 (diff) | |
download | nginx-aa741f87273f2137d9a52080593c5fe6f1d1b0ea.tar.gz nginx-aa741f87273f2137d9a52080593c5fe6f1d1b0ea.zip |
Win32: removed NGX_DIR_MASK concept.
Previous interface of ngx_open_dir() assumed that passed directory name
has a room for NGX_DIR_MASK at the end (NGX_DIR_MASK_LEN bytes). While all
direct users of ngx_dir_open() followed this interface, this also implied
similar requirements for indirect uses - in particular, via ngx_walk_tree().
Currently none of ngx_walk_tree() uses provides appropriate space, and
fixing this does not look like a right way to go. Instead, ngx_dir_open()
interface was changed to not require any additional space and use
appropriate allocations instead.
Diffstat (limited to 'src/http/modules/ngx_http_random_index_module.c')
-rw-r--r-- | src/http/modules/ngx_http_random_index_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_random_index_module.c b/src/http/modules/ngx_http_random_index_module.c index b47ee4f0d..ed00ad53c 100644 --- a/src/http/modules/ngx_http_random_index_module.c +++ b/src/http/modules/ngx_http_random_index_module.c @@ -98,7 +98,7 @@ ngx_http_random_index_handler(ngx_http_request_t *r) } #if (NGX_HAVE_D_TYPE) - len = NGX_DIR_MASK_LEN; + len = 0; #else len = NGX_HTTP_RANDOM_INDEX_PREALLOCATE; #endif |