commit | 8877284863950c2a51d5b076a781437b81cd41e1 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Mon Mar 31 21:40:35 2014 +0400 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Mon Mar 31 21:40:35 2014 +0400 |
tree | 26ed2246adc8440f89de7497cce8af93975537fc | |
parent | 2a620ae109cb97bd320ad367d9af2d9f7b24090c [diff] |
Core: fixed hash to actually try max_size. Previously, maximum size of a hash table built was (max_size - 1).
diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c index fe95693..c7bfed7 100644 --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c
@@ -282,7 +282,7 @@ start = hinit->max_size - 1000; } - for (size = start; size < hinit->max_size; size++) { + for (size = start; size <= hinit->max_size; size++) { ngx_memzero(test, size * sizeof(u_short));