Only try to set nego token if load balance info length is >0
@@ -288,7 +288,7 @@ BOOL rdp_client_connect(rdpRdp* rdp)
nego_set_cookie_max_length(rdp->nego, settings->CookieMaxLength);
- if (settings->LoadBalanceInfo)
+ if (settings->LoadBalanceInfo && (settings->LoadBalanceInfoLength > 0))
{
if (!nego_set_routing_token(rdp->nego, settings->LoadBalanceInfo, settings->LoadBalanceInfoLength))
return FALSE;
@@ -492,10 +492,13 @@ BOOL rdp_client_redirect(rdpRdp* rdp)
return FALSE;
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
{
BOOL haveRedirectAddress = FALSE;
