mirror of https://github.com/FreeRDP/FreeRDP
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:
parent
c8571dd5fd
commit
c2819a00c9
|
@ -733,11 +733,6 @@ static BOOL nla_client_send_token(rdpNla* nla, SecBufferDesc* token)
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer = token->pBuffers;
|
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))
|
if (!nla_sec_buffer_alloc_from_buffer(&nla->negoToken, &token->pBuffers[0], 0))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in New Issue