1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-27 02:29:52 +03:00

Merge PR #654: src/Cedar/EtherLog: remove null dereference introduced in #650

This commit is contained in:
Davide Beatrici 2018-08-13 23:54:14 +02:00 committed by GitHub
commit 79e2de6e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();