[server,warnings] properly handle function return

This commit is contained in:
Armin Novak
2026-02-16 08:18:27 +01:00
parent f4b0549c5b
commit a1c72a2f85
6 changed files with 54 additions and 22 deletions

View File

@@ -608,7 +608,8 @@ static DWORD WINAPI pf_server_handle_peer(LPVOID arg)
goto out_free_peer;
WINPR_ASSERT(client->Initialize);
client->Initialize(client);
if (!client->Initialize(client))
goto out_free_peer;
PROXY_LOG_INFO(TAG, ps, "new connection: proxy address: %s, client address: %s",
pdata->config->Host, client->hostname);