diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-06 16:16:31 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-06 16:16:31 +0000 |
commit | 620419b42102980dd277ce2f9a59328f36e58f37 (patch) | |
tree | 9e6f2eb6a869c54018b267ba13d2ef869ec256ad /src/or | |
parent | 70f3b3ef8677e5aaab7831b015e97f91840d9d07 (diff) | |
download | tor-620419b42102980dd277ce2f9a59328f36e58f37.tar.gz tor-620419b42102980dd277ce2f9a59328f36e58f37.zip |
oh, and accept() into the right place, too.
svn:r4029
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 33c23189dd..2ef10c7afc 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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; |