diff options
author | Roger Dingledine <arma@torproject.org> | 2003-11-29 02:50:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-11-29 02:50:12 +0000 |
commit | 00de055f4313e88a1fc7a00a3c746c123b572861 (patch) | |
tree | 7c095ef339bedfb79c9d56280927a2e0181cb96a /src | |
parent | c52ee5e2afcba98798b6f2de20d66c5758f2dca7 (diff) | |
download | tor-00de055f4313e88a1fc7a00a3c746c123b572861.tar.gz tor-00de055f4313e88a1fc7a00a3c746c123b572861.zip |
bugfix: an offline OP would leak all its sockets and stop working
svn:r865
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index d8746dd17e..88d6fde157 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -274,6 +274,7 @@ int connection_connect(connection_t *conn, char *address, uint32_t addr, uint16_ /* yuck. kill it. */ perror("connect"); log_fn(LOG_INFO,"Connect() to %s:%u failed.",address,port); + close(s); return -1; } else { /* it's in progress. set state appropriately and return. */ |