From 59236b509ac968efd19525eea529e70096cf683f Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Sat, 11 May 2024 13:52:00 +0200 Subject: [PATCH] Update proxy.c --- Sandboxie/core/dll/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sandboxie/core/dll/proxy.c b/Sandboxie/core/dll/proxy.c index 7e5d18d5..f2568325 100644 --- a/Sandboxie/core/dll/proxy.c +++ b/Sandboxie/core/dll/proxy.c @@ -78,7 +78,7 @@ _FX BOOLEAN socks5_handshake(SOCKET s, BOOLEAN auth, WCHAR login[SOCKS_AUTH_MAX_ if (auth) req[3] = SOCKS_USERNAME_PASSWORD; - if (__sys_send(s, req, 3 + auth, 0) != sizeof(req)) + if (__sys_send(s, req, (3 + auth), 0) != (3 + auth)) goto on_error; char res[2];