Add log of reason for protocol negotiation failure

Fixes issue #104
This commit is contained in:
Henrik Andersson 2017-03-03 09:29:53 +01:00
parent 0b745346e2
commit af36ac3a64

10
iso.c
View File

@ -293,8 +293,14 @@ iso_connect(char *server, char *username, char *domain, char *password,
if (retry_without_neg)
{
logger(Core, Notice,
"Failed to negotiate protocol, retrying with plain RDP.");
if (reason != NULL)
{
logger(Protocol, Warning,
"Protocol negotation failed with reason: %s",
reason);
}
logger(Core, Notice, "Retrying with plain RDP.");
g_negotiate_rdp_protocol = False;
goto retry;
}