Don't tor_close_socket(-1) in tor-resolve.

Bugfix on 96b1bd4fb8.  Not in any released Tor.
This commit is contained in:
Nick Mathewson 2013-02-11 17:32:58 -05:00
parent 99457ee776
commit e5a987fbb8

View File

@ -201,7 +201,7 @@ do_resolve(const char *hostname, uint32_t sockshost, uint16_t socksport,
s = tor_open_socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
if (s<0) {
log_sock_error("creating_socket", -1);
goto err;
return -1;
}
memset(&socksaddr, 0, sizeof(socksaddr));