It seems that some terrific anti virus solution ripped my patch away. So I'll paste it verbatim here:
---8<--- diff -ruN a/libfreerdp-core/connection.c b/libfreerdp-core/connection.c --- a/libfreerdp-core/connection.c 2013-01-02 21:46:59.000000000 +0000 +++ b/libfreerdp-core/connection.c 2013-03-12 10:57:33.524362000 +0000 @@ -144,23 +144,21 @@ { nego_set_routing_token(rdp->nego, &redirection->loadBalanceInfo); } - else + + if (redirection->flags & LB_TARGET_NET_ADDRESS) + { + xfree(settings->hostname); + settings->hostname = xstrdup(redirection->targetNetAddress.ascii); + } + else if (redirection->flags & LB_TARGET_FQDN) + { + xfree(settings->hostname); + settings->hostname = xstrdup(redirection->targetFQDN.ascii); + } + else if (redirection->flags & LB_TARGET_NETBIOS_NAME) { - if (redirection->flags & LB_TARGET_NET_ADDRESS) - { - xfree(settings->hostname); - settings->hostname = xstrdup(redirection->targetNetAddress.ascii); - } - else if (redirection->flags & LB_TARGET_FQDN) - { - xfree(settings->hostname); - settings->hostname = xstrdup(redirection->targetFQDN.ascii); - } - else if (redirection->flags & LB_TARGET_NETBIOS_NAME) - { - xfree(settings->hostname); - settings->hostname = xstrdup(redirection->targetNetBiosName.ascii); - } + xfree(settings->hostname); + settings->hostname = xstrdup(redirection->targetNetBiosName.ascii); } if (redirection->flags & LB_USERNAME) ---8<--- NOTE: I have to use Outlook, so this patch could be mucked up in an ugly way. ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Freerdp-devel mailing list Freerdp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel