Fixed sspi_CopyAuthIdentity, now checking source struct, if it is ANSI encoded.

This commit is contained in:
Armin Novak 2014-10-17 11:43:41 +02:00
parent 56982d6100
commit 3d28c9dbf1
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ int sspi_CopyAuthIdentity(SEC_WINNT_AUTH_IDENTITY* identity, SEC_WINNT_AUTH_IDEN
{
int status;
if (identity->Flags == SEC_WINNT_AUTH_IDENTITY_ANSI)
if (srcIdentity->Flags == SEC_WINNT_AUTH_IDENTITY_ANSI)
{
status = sspi_SetAuthIdentity(identity, (char*) srcIdentity->User,
(char*) srcIdentity->Domain, (char*) srcIdentity->Password);