diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2014-10-14 21:56:04 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-04 00:37:24 -0500 |
commit | 0da4ddda4f8f1c3c931349e45acbdcae2b7cc750 (patch) | |
tree | 0859c28017b5c653cda974dbe978827f011acad0 /src/or/buffers.c | |
parent | 2f1068e68a95a2ad9ba058297b54622323b216c6 (diff) | |
download | tor-0da4ddda4f8f1c3c931349e45acbdcae2b7cc750.tar.gz tor-0da4ddda4f8f1c3c931349e45acbdcae2b7cc750.zip |
Checking if FQDN is actually IPv6 address string and handling that case.
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index e98f56932d..354bec64bc 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -2049,7 +2049,8 @@ 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_ipv4_address(req->address)) { + if (string_is_valid_ipv4_address(req->address) || + string_is_valid_ipv6_address(req->address)) { log_unsafe_socks_warning(5,req->address,req->port,safe_socks); if (safe_socks) |