aboutsummaryrefslogtreecommitdiff
path: root/src/core/proto
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-04-30 06:17:18 +1000
committerteor <teor@torproject.org>2020-04-30 06:54:42 +1000
commitcd7e2fc210349615c8e9cdb879f98cb0c9cac57b (patch)
tree60b9ddd3c3c1c60b64b1d643e7ef3dbfa8f8ec65 /src/core/proto
parentf62b051e873aa4be564e9f83745902d4541f79f4 (diff)
downloadtor-cd7e2fc210349615c8e9cdb879f98cb0c9cac57b.tar.gz
tor-cd7e2fc210349615c8e9cdb879f98cb0c9cac57b.zip
net: Make all address bytes functions take uint8_t *
Part of 33817.
Diffstat (limited to 'src/core/proto')
-rw-r--r--src/core/proto/proto_socks.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/proto/proto_socks.c b/src/core/proto/proto_socks.c
index 6fd08b2273..c7d2af3d97 100644
--- a/src/core/proto/proto_socks.c
+++ b/src/core/proto/proto_socks.c
@@ -587,9 +587,8 @@ parse_socks5_client_request(const uint8_t *raw_data, socks_request_t *req,
strlcpy(req->address, hostname, sizeof(req->address));
} break;
case 4: {
- const char *ipv6 =
- (const char *)socks5_client_request_getarray_dest_addr_ipv6(
- trunnel_req);
+ const uint8_t *ipv6 =
+ socks5_client_request_getarray_dest_addr_ipv6(trunnel_req);
tor_addr_from_ipv6_bytes(&destaddr, ipv6);
tor_addr_to_str(req->address, &destaddr, sizeof(req->address), 1);