libwinpr-sspi: fix encoding of server-side NTLM challenge message

This commit is contained in:
Marc-André Moreau 2014-01-24 13:02:45 -05:00
parent 1c0e874b5b
commit 21a259927a

View File

@ -188,7 +188,7 @@ void ntlm_get_target_computer_name(PUNICODE_STRING pName, COMPUTER_NAME_FORMAT t
length = ConvertToUnicode(CP_UTF8, 0, name, -1, &pName->Buffer, 0); length = ConvertToUnicode(CP_UTF8, 0, name, -1, &pName->Buffer, 0);
pName->Length = (length - 1) / 2; pName->Length = (length - 1) * 2;
pName->MaximumLength = pName->Length; pName->MaximumLength = pName->Length;
free(name); free(name);