aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-02-03 16:57:39 +0100
committerMartin Willi <martin@revosec.ch>2011-02-03 17:08:53 +0100
commitbf3e482141fb2e5e7685a8c555bee39414d6c4a9 (patch)
treecd92222f544ae8f30e7b7a3c181b20824e1e4836
parentb49d047bfc9a2c2e76243ae36c494b9e910d0cfd (diff)
downloadstrongswan-bf3e482141fb2e5e7685a8c555bee39414d6c4a9.tar.bz2
strongswan-bf3e482141fb2e5e7685a8c555bee39414d6c4a9.tar.xz
Fix check to increase hashtable size properly
-rw-r--r--src/libstrongswan/utils/hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/hashtable.c b/src/libstrongswan/utils/hashtable.c
index dde57dc65..3b7148e0b 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;
}