diff options
Diffstat (limited to 'tables/apr_hash.c')
-rw-r--r-- | tables/apr_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tables/apr_hash.c b/tables/apr_hash.c index d0c9f01de..f8ab43fa2 100644 --- a/tables/apr_hash.c +++ b/tables/apr_hash.c @@ -191,7 +191,7 @@ static void expand_array(apr_hash_t *ht) new_max = ht->max * 2 + 1; new_array = alloc_array(ht, new_max); for (hi = apr_hash_first(ht); hi; hi = apr_hash_next(hi)) { - i = hi->this->hash & ht->max; + i = hi->this->hash & new_max; hi->this->next = new_array[i]; new_array[i] = hi->this; } |