Update proxy.c
This commit is contained in:
parent
1dff029975
commit
59236b509a
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue