nla: Remove incorrect check when using NLA with a NULL identity

When using NLA with a NULL identity (in AcquireCredentialsHandle) on
Windows the client sends the first NLA package with cbBuffer set to 0.
In that case the client currently incorrectly kills the connection. With
this PR the check is removed and the client correctly connects to the server.
This commit is contained in:
Martin Fleisz 2021-09-08 13:46:42 +02:00 committed by akallabeth
parent c8571dd5fd
commit c2819a00c9
1 changed files with 0 additions and 5 deletions

View File

@ -733,11 +733,6 @@ static BOOL nla_client_send_token(rdpNla* nla, SecBufferDesc* token)
}
buffer = token->pBuffers;
if (buffer->cbBuffer < 1)
{
WLog_ERR(TAG, "[%s] token->pBuffers[0].cbBuffer=%" PRIu32, __FUNCTION__, buffer->cbBuffer);
goto fail;
}
if (!nla_sec_buffer_alloc_from_buffer(&nla->negoToken, &token->pBuffers[0], 0))
goto fail;