Bruce Mitchener identified (bug report #1099640) the never-ending SOCKS5

problem with the version byte and the check for bad versions. Bruce has lots
of clues on this, and based on his suggestion I've now removed the check of
that byte since it seems to be able to contain 1 or 5.
This commit is contained in:
Daniel Stenberg
2005-01-10 23:32:14 +00:00
parent 065e466f1a
commit 9d1145598a
3 changed files with 10 additions and 3 deletions

View File

@@ -1829,8 +1829,8 @@ static int handleSock5Proxy(const char *proxy_name,
return 1;
}
if ((socksreq[0] != 5) || /* version */
(socksreq[1] != 0)) { /* status */
/* ignore the first (VER) byte */
if (socksreq[1] != 0) { /* status */
failf(conn->data, "User was rejected by the SOCKS5 server (%d %d).",
socksreq[0], socksreq[1]);
return 1;