Fix connection when no cookie is given

This patch corrects a regression introduced in 2edd8bee12
This commit is contained in:
Hardening 2014-04-16 17:04:49 +02:00
parent fa5713d724
commit 2089eaf0d2

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)