mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 07:44:57 +03:00
Cedar/IPC.c: fix memory leak occurring when both the username and common name are not present (OpenVPN)
This commit is contained in:
@ -433,6 +433,13 @@ IPC *NewIPC(CEDAR *cedar, char *client_name, char *postfix, char *hubname, char
|
||||
{
|
||||
p = PackLoginWithPlainPassword(hubname, username, password);
|
||||
}
|
||||
|
||||
if (p == NULL)
|
||||
{
|
||||
err = ERR_AUTH_FAILED;
|
||||
goto LABEL_ERROR;
|
||||
}
|
||||
|
||||
PackAddStr(p, "hello", client_name);
|
||||
PackAddInt(p, "client_ver", cedar->Version);
|
||||
PackAddInt(p, "client_build", cedar->Build);
|
||||
|
Reference in New Issue
Block a user