mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
bugfix: we were writing to stderr even when it's closed
svn:r868
This commit is contained in:
parent
2de4fc2b7f
commit
02ec2cdb34
@ -272,8 +272,7 @@ int connection_connect(connection_t *conn, char *address, uint32_t addr, uint16_
|
||||
if(connect(s,(struct sockaddr *)&dest_addr,sizeof(dest_addr)) < 0) {
|
||||
if(!ERRNO_CONN_EINPROGRESS(errno)) {
|
||||
/* yuck. kill it. */
|
||||
perror("connect");
|
||||
log_fn(LOG_INFO,"Connect() to %s:%u failed.",address,port);
|
||||
log_fn(LOG_INFO,"Connect() to %s:%u failed: %s",address,port,strerror(errno));
|
||||
close(s);
|
||||
return -1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user