From: kubistika Date: Tue, 16 Jul 2019 13:14:06 +0000 (+0300) Subject: server: proxy: set nla fallback flag flag only if NLASecurity is enabled X-Git-Tag: 2.0.0~412^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95851b25e75534df7feb758f9f6ad1b04317d24a;p=platform%2Fupstream%2Ffreerdp.git server: proxy: set nla fallback flag flag only if NLASecurity is enabled --- diff --git a/server/proxy/pf_client.c b/server/proxy/pf_client.c index ea945e9..7ae5842 100644 --- a/server/proxy/pf_client.c +++ b/server/proxy/pf_client.c @@ -234,7 +234,12 @@ static DWORD WINAPI pf_client_thread_proc(LPVOID arg) DWORD status; HANDLE handles[64]; - pc->during_connect_process = TRUE; + /* Only set the `during_connect_process` flag if NlaSecurity is enabled. + * If NLASecurity isn't enabled, the connection should be closed right after the first failure. + */ + if (instance->settings->NlaSecurity) + pc->during_connect_process = TRUE; + if (!freerdp_connect(instance)) { if (instance->settings->NlaSecurity)