Fix check to increase hashtable size properly
This commit is contained in:
@@ -186,7 +186,7 @@ static void rehash(private_hashtable_t *this)
|
|||||||
linked_list_t **old_table;
|
linked_list_t **old_table;
|
||||||
u_int row, old_capacity;
|
u_int row, old_capacity;
|
||||||
|
|
||||||
if (this->capacity < MAX_CAPACITY)
|
if (this->capacity >= MAX_CAPACITY)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user