mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Move a quote, fix a log.
svn:r4056
This commit is contained in:
parent
c6769a80fb
commit
31c12e265f
@ -542,7 +542,7 @@ static int connection_handle_listener_read(connection_t *conn, int new_type) {
|
|||||||
/* length of the remote address. Must be an int, since accept() needs that. */
|
/* length of the remote address. Must be an int, since accept() needs that. */
|
||||||
int remotelen = 256;
|
int remotelen = 256;
|
||||||
char tmpbuf[INET_NTOA_BUF_LEN];
|
char tmpbuf[INET_NTOA_BUF_LEN];
|
||||||
tor_assert(remotelen >= sizeof(struct sockaddr_in));
|
tor_assert((size_t)remotelen >= sizeof(struct sockaddr_in));
|
||||||
memset(addrbuf, 0, sizeof(addrbuf));
|
memset(addrbuf, 0, sizeof(addrbuf));
|
||||||
|
|
||||||
news = accept(conn->s,(struct sockaddr *)&addrbuf,&remotelen);
|
news = accept(conn->s,(struct sockaddr *)&addrbuf,&remotelen);
|
||||||
|
Loading…
Reference in New Issue
Block a user