mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-27 02:29:52 +03:00
src/Cedar/Server.c: remove logically dead code
found by coverity
This commit is contained in:
parent
b8af87adc1
commit
2103520728
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user