From 21a259927a02bfa5020099748b7ce3627271dcf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Fri, 24 Jan 2014 13:02:45 -0500 Subject: [PATCH] libwinpr-sspi: fix encoding of server-side NTLM challenge message --- winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c b/winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c index 810bc2223..a9dbf9885 100644 --- a/winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c +++ b/winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c @@ -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); - pName->Length = (length - 1) / 2; + pName->Length = (length - 1) * 2; pName->MaximumLength = pName->Length; free(name);