From: Martin Willi Date: Thu, 3 Feb 2011 15:57:39 +0000 (+0100) Subject: Fix check to increase hashtable size properly X-Git-Tag: 4.5.1~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf3e482141fb2e5e7685a8c555bee39414d6c4a9;p=thirdparty%2Fstrongswan.git Fix check to increase hashtable size properly --- 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; }