diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-19 23:01:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-19 23:01:07 +0000 |
commit | 9479dd376889c9d2cfb25bae8bd8b0a570118b3f (patch) | |
tree | 38b2451c138ed53a6bccecf9794e64d38af7721c /src/or | |
parent | d1a195d3cb5201ef66d3aa3b71fecde7f2083ff2 (diff) | |
download | tor-9479dd376889c9d2cfb25bae8bd8b0a570118b3f.tar.gz tor-9479dd376889c9d2cfb25bae8bd8b0a570118b3f.zip |
r18226@catbus: nickm | 2008-02-19 18:01:01 -0500
Brown-paper-bag time. We were failing to count all the sockets from accept().
svn:r13595
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 9c6c61749a..db50e87402 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -929,7 +929,7 @@ connection_handle_listener_read(connection_t *conn, int new_type) tor_assert((size_t)remotelen >= sizeof(struct sockaddr_in)); memset(addrbuf, 0, sizeof(addrbuf)); - news = accept(conn->s,(struct sockaddr *)&addrbuf,&remotelen); + news = tor_accept_socket(conn->s,(struct sockaddr *)&addrbuf,&remotelen); if (news < 0) { /* accept() error */ int e = tor_socket_errno(conn->s); if (ERRNO_IS_ACCEPT_EAGAIN(e)) { |