Commit 0fbbb129 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

secur32: Don't try to set an empty target name in schan_InitializeSecurityContextW.

Based on original patch by Nikos Mavrogiannopoulos.
parent f58c1176
......@@ -825,7 +825,7 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
return SEC_E_INTERNAL_ERROR;
}
if (pszTargetName)
if (pszTargetName && *pszTargetName)
{
UINT len = WideCharToMultiByte( CP_UNIXCP, 0, pszTargetName, -1, NULL, 0, NULL, NULL );
char *target = HeapAlloc( GetProcessHeap(), 0, len );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment