Merge remote-tracking branch 'tor-github/pr/314'

This commit is contained in:
Nick Mathewson 2018-09-11 12:19:13 -04:00
commit a7d0cbd462

View File

@ -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;
}