nla: context must be NULL on first call to AcceptSecurityContext or InitializeSecurityContext

This commit is contained in:
David Fort 2022-10-07 17:25:47 +02:00 committed by akallabeth
parent 467816a7a5
commit cd0a33dbf2

View File

@ -279,8 +279,12 @@ int credssp_auth_authenticate(rdpCredsspAuth* auth)
return -1;
}
/* Context and input buffer will be null on first call */
/* input buffer will be null on first call,
* context MUST be NULL on first call */
context = &auth->context;
if (!auth->context.dwLower && !auth->context.dwUpper)
context = NULL;
input_buffers[0] = auth->input_buffer;
if (auth->bindings)