Merge pull request #1796 from hardening/nego_fix

Fix connection when no cookie is given
This commit is contained in:
Marc-André Moreau 2014-04-16 11:25:16 -04:00
commit fae0c4a6e5
1 changed files with 6 additions and 0 deletions

View File

@ -1139,7 +1139,13 @@ BOOL nego_set_routing_token(rdpNego* nego, BYTE* RoutingToken, DWORD RoutingToke
BOOL nego_set_cookie(rdpNego* nego, char* cookie)
{
if (nego->cookie)
{
free(nego->cookie);
nego->cookie = 0;
}
if (!cookie)
return TRUE;
nego->cookie = _strdup(cookie);
if (!nego->cookie)