mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
src/Cedar/EtherLog.c: resolve possible null dereference
found by coverity
This commit is contained in:
parent
fd16f73c0e
commit
937da4a746
@ -276,7 +276,7 @@ UINT EcConnect(char *host, UINT port, char *password, RPC **rpc)
|
|||||||
// RPC server function
|
// RPC server function
|
||||||
PACK *ElRpcServer(RPC *r, char *name, PACK *p)
|
PACK *ElRpcServer(RPC *r, char *name, PACK *p)
|
||||||
{
|
{
|
||||||
EL *e = (EL *)r->Param;
|
EL *e;
|
||||||
PACK *ret;
|
PACK *ret;
|
||||||
UINT err;
|
UINT err;
|
||||||
bool ok;
|
bool ok;
|
||||||
@ -286,6 +286,7 @@ PACK *ElRpcServer(RPC *r, char *name, PACK *p)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e = (EL *)r->Param;
|
||||||
ret = NewPack();
|
ret = NewPack();
|
||||||
err = ERR_NO_ERROR;
|
err = ERR_NO_ERROR;
|
||||||
ok = false;
|
ok = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user