diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-15 19:17:34 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-15 19:17:34 +0000 |
commit | e8fd871d8b6459267f8de6e3389333144ef062eb (patch) | |
tree | 4a7631a5d6ebd457146fc1a4d3f1c74fa275a879 /src/or/buffers.c | |
parent | 13cf54b9c1242e6f8f030ca4225ea2d258e1aaf6 (diff) | |
download | tor-e8fd871d8b6459267f8de6e3389333144ef062eb.tar.gz tor-e8fd871d8b6459267f8de6e3389333144ef062eb.zip |
Stop being printist: just because our local platform doesn't
consider an alleged destination to be printable doesn't mean
nobody in the world will want to use it.
svn:r6167
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 69dc0ad7c9..4bba6423d4 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -1003,13 +1003,6 @@ fetch_from_buf_socks(buf_t *buf, socks_request_t *req, int log_sockstype) req->address[len] = 0; req->port = ntohs(get_uint16(buf->cur+5+len)); buf_remove_from_front(buf, 5+len+2); - if (!tor_strisprint(req->address) || strchr(req->address,'\"')) { - log_warn(LD_PROTOCOL, - "Your application (using socks5 on port %d) gave Tor " - "a malformed hostname: %s. Rejecting the connection.", - req->port, escaped(req->address)); - return -1; - } if (log_sockstype) log_notice(LD_APP, @@ -1105,13 +1098,6 @@ fetch_from_buf_socks(buf_t *buf, socks_request_t *req, int log_sockstype) log_debug(LD_APP,"socks4: Everything is here. Success."); strlcpy(req->address, startaddr ? startaddr : tmpbuf, sizeof(req->address)); - if (!tor_strisprint(req->address) || strchr(req->address,'\"')) { - log_warn(LD_PROTOCOL, - "Your application (using socks4 on port %d) gave Tor " - "a malformed hostname: %s. Rejecting the connection.", - req->port, escaped(req->address)); - return -1; - } /* next points to the final \0 on inbuf */ buf_remove_from_front(buf, next-buf->cur+1); return 1; |