1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-19 18:20:40 +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:
Ilya Shipitsin 2018-08-14 02:36:28 +05:00
parent fc0bd44392
commit f96a3b3989
2 changed files with 1 additions and 18 deletions

View File

@ -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;
}

View File

@ -205,8 +205,6 @@ struct EL
};
// Function prototype
void ElInit();
void ElFree();
void ElStart();
void ElStop();
EL *NewEl();