From bf3e482141fb2e5e7685a8c555bee39414d6c4a9 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 3 Feb 2011 16:57:39 +0100 Subject: [PATCH] Fix check to increase hashtable size properly --- src/libstrongswan/utils/hashtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/utils/hashtable.c b/src/libstrongswan/utils/hashtable.c index dde57dc65f..3b7148e0be 100644 --- a/src/libstrongswan/utils/hashtable.c +++ b/src/libstrongswan/utils/hashtable.c @@ -186,7 +186,7 @@ static void rehash(private_hashtable_t *this) linked_list_t **old_table; u_int row, old_capacity; - if (this->capacity < MAX_CAPACITY) + if (this->capacity >= MAX_CAPACITY) { return; } -- 2.47.2