mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Don't tor_close_socket(-1) in tor-resolve.
Bugfix on 96b1bd4fb8
. Not in any released Tor.
This commit is contained in:
parent
99457ee776
commit
e5a987fbb8
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user