# HG changeset patch # User Maxim Dounin # Date 1396287635 -14400 # Node ID 54f847c88cf71f53cb9429211ec23cc5414fb2c3 # Parent c348dea081fba59190c32460d3e8f6e472170a2b 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 --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c @@ -282,7 +282,7 @@ ngx_hash_init(ngx_hash_init_t *hinit, ng 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));