Merge pull request #1730 from divineforge/master

Fixing the E_PROXY_RAP_ACCESSDENIED error
This commit is contained in:
Marc-André Moreau 2014-03-17 10:04:23 -04:00
commit b23f0dba7f
2 changed files with 12 additions and 12 deletions

View File

@ -303,16 +303,16 @@ BOOL rdp_client_redirect(rdpRdp* rdp)
} }
else else
{ {
if (settings->RedirectionFlags & LB_TARGET_NET_ADDRESS) if (settings->RedirectionFlags & LB_TARGET_FQDN)
{
free(settings->ServerHostname);
settings->ServerHostname = _strdup(settings->TargetNetAddress);
}
else if (settings->RedirectionFlags & LB_TARGET_FQDN)
{ {
free(settings->ServerHostname); free(settings->ServerHostname);
settings->ServerHostname = _strdup(settings->RedirectionTargetFQDN); settings->ServerHostname = _strdup(settings->RedirectionTargetFQDN);
} }
else if (settings->RedirectionFlags & LB_TARGET_NET_ADDRESS)
{
free(settings->ServerHostname);
settings->ServerHostname = _strdup(settings->TargetNetAddress);
}
else if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME) else if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME)
{ {
free(settings->ServerHostname); free(settings->ServerHostname);

View File

@ -103,16 +103,16 @@ int rdp_redirection_apply_settings(rdpRdp* rdp)
} }
else else
{ {
if (settings->RedirectionFlags & LB_TARGET_NET_ADDRESS) if (settings->RedirectionFlags & LB_TARGET_FQDN)
{
free(settings->TargetNetAddress);
settings->TargetNetAddress = _strdup(redirection->TargetNetAddress);
}
else if (settings->RedirectionFlags & LB_TARGET_FQDN)
{ {
free(settings->RedirectionTargetFQDN); free(settings->RedirectionTargetFQDN);
settings->RedirectionTargetFQDN = _strdup(redirection->TargetFQDN); settings->RedirectionTargetFQDN = _strdup(redirection->TargetFQDN);
} }
else if (settings->RedirectionFlags & LB_TARGET_NET_ADDRESS)
{
free(settings->TargetNetAddress);
settings->TargetNetAddress = _strdup(redirection->TargetNetAddress);
}
else if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME) else if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME)
{ {
free(settings->RedirectionTargetNetBiosName); free(settings->RedirectionTargetNetBiosName);