[core,connection]: Fix load balance setting on redirection

The routing token is already set for the nego on rdp_client_connect func.
This commit is contained in:
Joan Torres 2023-02-24 20:56:58 +01:00 committed by akallabeth
parent 8c998e67f3
commit 5f8e64f89c

View File

@ -618,16 +618,7 @@ BOOL rdp_client_redirect(rdpRdp* rdp)
settings = rdp->settings;
WINPR_ASSERT(settings);
if (settings->RedirectionFlags & LB_LOAD_BALANCE_INFO)
{
if (settings->LoadBalanceInfo && (settings->LoadBalanceInfoLength > 0))
{
if (!nego_set_routing_token(rdp->nego, settings->LoadBalanceInfo,
settings->LoadBalanceInfoLength))
return FALSE;
}
}
else
if ((settings->RedirectionFlags & LB_LOAD_BALANCE_INFO) == 0)
{
BOOL haveRedirectAddress = FALSE;
UINT32 redirectionMask = settings->RedirectionPreferType;