libwinpr-sspi: fix SuppressExtendedProtection
authorMarc-André Moreau <marcandre.moreau@gmail.com>
Fri, 26 Oct 2012 16:00:30 +0000 (12:00 -0400)
committerMarc-André Moreau <marcandre.moreau@gmail.com>
Fri, 26 Oct 2012 16:00:30 +0000 (12:00 -0400)
winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c

index 9e75b71..628df78 100644 (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];