mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +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];
|
char tmp[MAX_SIZE];
|
||||||
X *x = NULL;
|
X *x = NULL;
|
||||||
K *k = NULL;
|
K *k = NULL;
|
||||||
bool cluster_allowed = false;
|
|
||||||
UINT num_connections_per_ip = 0;
|
UINT num_connections_per_ip = 0;
|
||||||
FOLDER *params_folder;
|
FOLDER *params_folder;
|
||||||
UINT i;
|
UINT i;
|
||||||
@ -6028,13 +6027,8 @@ void SiLoadServerCfg(SERVER *s, FOLDER *f)
|
|||||||
}
|
}
|
||||||
Unlock(c->TrafficLock);
|
Unlock(c->TrafficLock);
|
||||||
|
|
||||||
// Get whether the current license allows cluster mode
|
|
||||||
cluster_allowed = true;
|
|
||||||
|
|
||||||
|
|
||||||
// Type of server
|
// Type of server
|
||||||
s->UpdatedServerType = s->ServerType =
|
s->UpdatedServerType = s->ServerType = CfgGetInt(f, "ServerType");
|
||||||
cluster_allowed ? CfgGetInt(f, "ServerType") : SERVER_TYPE_STANDALONE;
|
|
||||||
|
|
||||||
// Password
|
// Password
|
||||||
if (CfgGetByte(f, "HashedPassword", s->HashedPassword, sizeof(s->HashedPassword)) != sizeof(s->HashedPassword))
|
if (CfgGetByte(f, "HashedPassword", s->HashedPassword, sizeof(s->HashedPassword)) != sizeof(s->HashedPassword))
|
||||||
|
Loading…
Reference in New Issue
Block a user