From 210352072866e00c9f14031b8fd213460fbf4a3a Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 12 Aug 2018 16:19:29 +0500 Subject: [PATCH] src/Cedar/Server.c: remove logically dead code found by coverity --- src/Cedar/Server.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Cedar/Server.c b/src/Cedar/Server.c index 5ec4ecba..51ede8e7 100644 --- a/src/Cedar/Server.c +++ b/src/Cedar/Server.c @@ -5766,7 +5766,6 @@ void SiLoadServerCfg(SERVER *s, FOLDER *f) char tmp[MAX_SIZE]; X *x = NULL; K *k = NULL; - bool cluster_allowed = false; UINT num_connections_per_ip = 0; FOLDER *params_folder; UINT i; @@ -6028,13 +6027,8 @@ void SiLoadServerCfg(SERVER *s, FOLDER *f) } Unlock(c->TrafficLock); - // Get whether the current license allows cluster mode - cluster_allowed = true; - - // Type of server - s->UpdatedServerType = s->ServerType = - cluster_allowed ? CfgGetInt(f, "ServerType") : SERVER_TYPE_STANDALONE; + s->UpdatedServerType = s->ServerType = CfgGetInt(f, "ServerType"); // Password if (CfgGetByte(f, "HashedPassword", s->HashedPassword, sizeof(s->HashedPassword)) != sizeof(s->HashedPassword))