mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
bugfix: an offline OP would leak all its sockets and stop working
svn:r865
This commit is contained in:
parent
c52ee5e2af
commit
00de055f43
@ -274,6 +274,7 @@ int connection_connect(connection_t *conn, char *address, uint32_t addr, uint16_
|
|||||||
/* yuck. kill it. */
|
/* yuck. kill it. */
|
||||||
perror("connect");
|
perror("connect");
|
||||||
log_fn(LOG_INFO,"Connect() to %s:%u failed.",address,port);
|
log_fn(LOG_INFO,"Connect() to %s:%u failed.",address,port);
|
||||||
|
close(s);
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
/* it's in progress. set state appropriately and return. */
|
/* it's in progress. set state appropriately and return. */
|
||||||
|
Loading…
Reference in New Issue
Block a user