Commit 00de055f authored by Roger Dingledine's avatar Roger Dingledine
Browse files

bugfix: an offline OP would leak all its sockets and stop working


svn:r865
parent c52ee5e2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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. */