mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
src/Cedar/Nat.c: resolve possible null dereference
found by coverity
This commit is contained in:
parent
937da4a746
commit
ff1470cdce
@ -299,7 +299,7 @@ RPC *NatAdminConnect(CEDAR *cedar, char *hostname, UINT port, void *hashed_passw
|
||||
// RPC server function
|
||||
PACK *NiRpcServer(RPC *r, char *name, PACK *p)
|
||||
{
|
||||
NAT *n = (NAT *)r->Param;
|
||||
NAT *n;
|
||||
PACK *ret;
|
||||
UINT err;
|
||||
bool ok;
|
||||
@ -309,6 +309,7 @@ PACK *NiRpcServer(RPC *r, char *name, PACK *p)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
n = (NAT *)r->Param;
|
||||
ret = NewPack();
|
||||
err = ERR_NO_ERROR;
|
||||
ok = false;
|
||||
|
Loading…
Reference in New Issue
Block a user