Commit 15659bef authored by Roger Dingledine's avatar Roger Dingledine
Browse files

oh, and accept() into the right place, too.


svn:r4029
parent 2994d9a2
Loading
Loading
Loading
Loading
+1 −1
Changes for trunk/src/or/connection.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -516,7 +516,7 @@ static int connection_handle_listener_read(connection_t *conn, int new_type) {
  tor_assert(remotelen >= sizeof(struct sockaddr_in));
  memset(addrbuf, 0, sizeof(addrbuf));

  news = accept(conn->s,(struct sockaddr *)&remote,&remotelen);
  news = accept(conn->s,(struct sockaddr *)&addrbuf,&remotelen);
  if (!SOCKET_IS_POLLABLE(news)) {
    /* accept() error, or too many conns to poll */
    int e;