diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-09-10 21:50:30 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-09-10 21:50:30 +0300 |
commit | 1ec54b3556ff24d3cfee72bebba48be90243fb2d (patch) | |
tree | 62b1e2c8445009634c56235110ad592f8174ce54 /src/tools | |
parent | b87a95289b63c891f4e12e0d40f41a39dae5aa7e (diff) | |
download | tor-1ec54b3556ff24d3cfee72bebba48be90243fb2d.tar.gz tor-1ec54b3556ff24d3cfee72bebba48be90243fb2d.zip |
Bugfix: sizeof(socklen) doesn't make sense when calling connect()
Bugfix on 2f657a1416f2f81dd1be900269c4ae9bdb29f52d; bug not in
any Tor release.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tor-resolve.c | 2 |
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; } |