[winpr,asn] Fixed a compiler warning
WinPrAsn1DecReadEnumerated expects an argument of type
WinPrAsn1_ENUMERATED* so ensure the variable referenced is of said type.
@@ -495,8 +495,10 @@ static BOOL negotiate_read_neg_token(PSecBuffer input, NegToken* token)
else
{
/* negState [0] ENUMERATED */
- if (!WinPrAsn1DecReadEnumerated(&dec2, &token->negState))
+ WinPrAsn1_ENUMERATED rd;
+ if (!WinPrAsn1DecReadEnumerated(&dec2, &rd))
return FALSE;
+ token->negState = rd;
WLog_DBG(TAG, "\tnegState [0] (%d)", token->negState);
}
break;
