Merge pull request #2157 from akallabeth/sspi-auth-fix

Fixed sspi_CopyAuthIdentity when using ANSI encoding
This commit is contained in:
Marc-André Moreau 2014-10-17 11:41:49 -04:00
commit 151a2f95d7

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);