mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-12 02:34:59 +03:00
resolved several cppcheck findings:
[src/Cedar/Admin.c:418]: (error) Possible null pointer dereference: cedar [src/Cedar/Admin.c:616]: (error) Possible null pointer dereference: cedar [src/Cedar/WebUI.c:369]: (error) Uninitialized variable: retcode [src/Mayaqua/Encrypt.c:4485]: (error) Uninitialized variable: key [src/Mayaqua/Network.c:13548]: (error) Uninitialized variable: e
This commit is contained in:
@ -410,11 +410,12 @@ PACK *AdminDispatch(RPC *rpc, char *name, PACK *p)
|
||||
|
||||
server = a->Server;
|
||||
|
||||
if (server != NULL)
|
||||
if (server == NULL)
|
||||
{
|
||||
cedar = server->Cedar;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
cedar = server->Cedar;
|
||||
Lock(cedar->CedarSuperLock);
|
||||
|
||||
if (true)
|
||||
|
Reference in New Issue
Block a user