mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,nla] fix possible memory leak
when no username is used a NULL identity should be passed. Free up this identity before setting it NULL
This commit is contained in:
@@ -364,6 +364,7 @@ static BOOL nla_client_setup_identity(rdpNla* nla)
|
||||
if (!settings->Username)
|
||||
{
|
||||
sspi_FreeAuthIdentity(nla->identity);
|
||||
free(nla->identity);
|
||||
nla->identity = NULL;
|
||||
}
|
||||
else if (settings->SmartcardLogon)
|
||||
|
||||
Reference in New Issue
Block a user