From 0e1cd903dae55a147e8472f75eb202dd524b6145 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Sun, 2 Aug 2009 22:29:12 +0200 Subject: [PATCH] Make sure we create enough sids as there are socket descriptors. --- src/core/usermanager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/usermanager.c b/src/core/usermanager.c index 4c7fa91..39ac76d 100644 --- a/src/core/usermanager.c +++ b/src/core/usermanager.c @@ -97,7 +97,7 @@ int uman_init(struct hub_info* hub) return -1; users->list = list_create(); - users->sids = sid_pool_create(MAX(1024, (hub->config->max_users + 24))); + users->sids = sid_pool_create(net_get_max_sockets()); if (!users->list) {