From 40463bb2f26cb2d416c23c0e2f8594a1d1b0259d Mon Sep 17 00:00:00 2001 From: kubistika Date: Tue, 22 Oct 2019 10:38:25 +0300 Subject: [PATCH] server: proxy: client: terminate the connection if pre connect hook fails --- server/proxy/pf_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/proxy/pf_client.c b/server/proxy/pf_client.c index 6e79f50..8f06abf 100644 --- a/server/proxy/pf_client.c +++ b/server/proxy/pf_client.c @@ -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)) { -- 2.7.4