summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-11 12:19:13 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-11 12:19:13 -0400
commita7d0cbd4626a75e9b90ae50a042e59a7034949af (patch)
tree19fbb50027e1d4389fe3a472fa07377c11758a87 /src
parentf741505642773ac8733dffe06365c532f5a92ee0 (diff)
parent1ec54b3556ff24d3cfee72bebba48be90243fb2d (diff)
downloadtor-a7d0cbd4626a75e9b90ae50a042e59a7034949af.tar.gz
tor-a7d0cbd4626a75e9b90ae50a042e59a7034949af.zip
Merge remote-tracking branch 'tor-github/pr/314'
Diffstat (limited to 'src')
-rw-r--r--src/tools/tor-resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c
index d5b4987832..95411d173d 100644
--- a/src/tools/tor-resolve.c
+++ b/src/tools/tor-resolve.c
@@ -224,7 +224,7 @@ do_resolve(const char *hostname,
socklen = tor_addr_to_sockaddr(sockshost, socksport,
(struct sockaddr *)&ss, sizeof(ss));
- if (connect(s, (struct sockaddr*)&ss, sizeof(socklen))) {
+ if (connect(s, (struct sockaddr*)&ss, socklen)) {
log_sock_error("connecting to SOCKS host", s);
goto err;
}