initial size of 1 is nonsense
authorTobias Brunner <tobias@strongswan.org>
Wed, 10 Dec 2008 13:45:05 +0000 (13:45 -0000)
committerTobias Brunner <tobias@strongswan.org>
Wed, 10 Dec 2008 13:45:05 +0000 (13:45 -0000)
src/charon/plugins/kernel_netlink/kernel_netlink_ipsec.c

index acd5989..6777f21 100644 (file)
@@ -1847,7 +1847,7 @@ kernel_netlink_ipsec_t *kernel_netlink_ipsec_create()
 
        /* private members */
        this->policies = hashtable_create((hashtable_hash_t)policy_hash,
-                                                                         (hashtable_equals_t)policy_equals, 1);
+                                                                         (hashtable_equals_t)policy_equals, 32);
        this->mutex = mutex_create(MUTEX_DEFAULT);
        this->install_routes = lib->settings->get_bool(lib->settings,
                                        "charon.install_routes", TRUE);