server: proxy: client: terminate the connection if pre connect hook fails

This commit is contained in:
kubistika 2019-10-22 10:38:25 +03:00 committed by akallabeth
parent 5cc5aa98ec
commit 40463bb2f2

View File

@ -382,7 +382,10 @@ static DWORD WINAPI pf_client_thread_proc(LPVOID arg)
handles[64] = pdata->abort_event;
if (!pf_modules_run_hook(HOOK_TYPE_CLIENT_PRE_CONNECT, (rdpContext*) ps))
{
proxy_data_abort_connect(pdata);
return FALSE;
}
if (!pf_client_connect(instance))
{