mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge remote-tracking branch 'tor-github/pr/314'
This commit is contained in:
commit
a7d0cbd462
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user