Fix connection when no cookie is given
This patch corrects a regression introduced in 2edd8bee12
This commit is contained in:
parent
fa5713d724
commit
2089eaf0d2
@ -1139,7 +1139,13 @@ BOOL nego_set_routing_token(rdpNego* nego, BYTE* RoutingToken, DWORD RoutingToke
|
|||||||
BOOL nego_set_cookie(rdpNego* nego, char* cookie)
|
BOOL nego_set_cookie(rdpNego* nego, char* cookie)
|
||||||
{
|
{
|
||||||
if (nego->cookie)
|
if (nego->cookie)
|
||||||
|
{
|
||||||
free(nego->cookie);
|
free(nego->cookie);
|
||||||
|
nego->cookie = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!cookie)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
nego->cookie = _strdup(cookie);
|
nego->cookie = _strdup(cookie);
|
||||||
if (!nego->cookie)
|
if (!nego->cookie)
|
||||||
|
Loading…
Reference in New Issue
Block a user