mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 08:14:58 +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:
@ -7126,6 +7126,7 @@ PACK *PackLoginWithOpenVPNCertificate(char *hubname, char *username, X *x)
|
||||
{
|
||||
if (x->subject_name == NULL)
|
||||
{
|
||||
FreePack(p);
|
||||
return NULL;
|
||||
}
|
||||
UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName);
|
||||
|
Reference in New Issue
Block a user