mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
oh, and accept() into the right place, too.
svn:r4029
This commit is contained in:
parent
70f3b3ef86
commit
620419b421
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user