diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-28 07:50:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-28 07:50:47 -0400 |
commit | 6317aa2cc03a3b7a6f9fd4a4bdd99447f7914493 (patch) | |
tree | 9be2e06a8f24eca26924fcfaa33edfc474782332 /src/or | |
parent | fa6eaab83e05a11b60735f7bf4064b05e7085230 (diff) | |
parent | d416e208e4e94c2b4ccd4e11013151c72180faff (diff) | |
download | tor-6317aa2cc03a3b7a6f9fd4a4bdd99447f7914493.tar.gz tor-6317aa2cc03a3b7a6f9fd4a4bdd99447f7914493.zip |
Merge branch 'maint-0.3.3'
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/proto_socks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/proto_socks.c b/src/or/proto_socks.c index 91633d02af..8700fe1269 100644 --- a/src/or/proto_socks.c +++ b/src/or/proto_socks.c @@ -393,7 +393,7 @@ parse_socks(const char *data, size_t datalen, socks_request_t *req, req->port = ntohs(get_uint16(data+5+len)); *drain_out = 5+len+2; - if (!string_is_valid_hostname(req->address)) { + if (!string_is_valid_dest(req->address)) { socks_request_set_socks5_error(req, SOCKS5_GENERAL_ERROR); log_warn(LD_PROTOCOL, @@ -518,7 +518,7 @@ parse_socks(const char *data, size_t datalen, socks_request_t *req, log_debug(LD_APP,"socks4: Everything is here. Success."); strlcpy(req->address, startaddr ? startaddr : tmpbuf, sizeof(req->address)); - if (!string_is_valid_hostname(req->address)) { + if (!string_is_valid_dest(req->address)) { log_warn(LD_PROTOCOL, "Your application (using socks4 to port %d) gave Tor " "a malformed hostname: %s. Rejecting the connection.", |