mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
src/Cedar/EtherLog: remove null dereference introduced in #650
also, remove unused functions: [src/Cedar/EtherLog.c:1377]: (style) The function 'ElFree' is never used. [src/Cedar/EtherLog.c:1370]: (style) The function 'ElInit' is never used.
This commit is contained in:
parent
fc0bd44392
commit
f96a3b3989
@ -281,7 +281,7 @@ PACK *ElRpcServer(RPC *r, char *name, PACK *p)
|
||||
UINT err;
|
||||
bool ok;
|
||||
// Validate arguments
|
||||
if (r == NULL || name == NULL || p == NULL || e == NULL)
|
||||
if (r == NULL || name == NULL || p == NULL || r->Param == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
@ -1366,18 +1366,3 @@ void ElStop()
|
||||
Unlock(el_lock);
|
||||
}
|
||||
|
||||
// EL initialization
|
||||
void ElInit()
|
||||
{
|
||||
// Lock initialization
|
||||
el_lock = NewLock();
|
||||
}
|
||||
|
||||
// EL release
|
||||
void ElFree()
|
||||
{
|
||||
// Lock release
|
||||
DeleteLock(el_lock);
|
||||
el_lock = NULL;
|
||||
}
|
||||
|
||||
|
@ -205,8 +205,6 @@ struct EL
|
||||
};
|
||||
|
||||
// Function prototype
|
||||
void ElInit();
|
||||
void ElFree();
|
||||
void ElStart();
|
||||
void ElStop();
|
||||
EL *NewEl();
|
||||
|
Loading…
Reference in New Issue
Block a user