Update proxy.c

This commit is contained in:
DavidXanatos 2024-05-11 13:52:00 +02:00
parent 1dff029975
commit 59236b509a
1 changed files with 1 additions and 1 deletions

View File

@ -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];