diff options
author | Robert Hogan <robert@roberthogan.net> | 2010-12-14 19:59:42 +0000 |
---|---|---|
committer | Robert Hogan <robert@roberthogan.net> | 2010-12-14 19:59:42 +0000 |
commit | 02c2d9a4aa2a7ce339e87be9c0c0dc23a6881c14 (patch) | |
tree | a52f037d79319d865647a0722e06677ad638f03d /src/or/buffers.c | |
parent | 8a2f7ef66ac3bee0d6885ec3ca16937fed0703bb (diff) | |
download | tor-02c2d9a4aa2a7ce339e87be9c0c0dc23a6881c14.tar.gz tor-02c2d9a4aa2a7ce339e87be9c0c0dc23a6881c14.zip |
bug1666 - Pass-through support for SOCKS5 authentication(4)
Implement nickm's suggestion that we tolerate SOCKS5 clients
that send authentication credentials and SOCKS commands all in
one go.
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 5cd76fa0d6..445376f60e 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -1658,11 +1658,6 @@ parse_socks(const char *data, size_t datalen, socks_request_t *req, *want_length_out = 2u+usernamelen; return 0; } - if (datalen > 2u + usernamelen + 1u + passlen) { - log_warn(LD_APP, - "socks5: Malformed username/password. Rejecting."); - return -1; - } req->replylen = 2; /* 2 bytes of response */ req->reply[0] = 5; req->reply[1] = 0; /* authentication successful */ |