libwinpr-sspi: fix SuppressExtendedProtection

This commit is contained in:
Marc-André Moreau 2012-10-26 12:00:30 -04:00
parent 9a6d405a54
commit 9eece31e19

View File

@ -317,7 +317,7 @@ void ntlm_construct_authenticate_target_info(NTLM_CONTEXT* context)
//AvPairsCount++; /* MsvAvRestrictions */
//AvPairsValueLength += 48;
if (!context->SuppressExtendedProtection)
if (context->SuppressExtendedProtection != FALSE)
{
AvPairsCount++; /* MsvChannelBindings */
AvPairsValueLength += 16;
@ -363,7 +363,7 @@ void ntlm_construct_authenticate_target_info(NTLM_CONTEXT* context)
ntlm_av_pair_add(AuthenticateTargetInfo, MsvAvFlags, (PBYTE) &flags, 4);
}
if (!context->SuppressExtendedProtection)
if (context->SuppressExtendedProtection != FALSE)
{
BYTE ChannelBindingToken[16];