[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] oh, and accept() into the right place, too.
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
connection.c
Log Message:
oh, and accept() into the right place, too.
Index: connection.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.357
retrieving revision 1.358
diff -u -d -r1.357 -r1.358
--- connection.c 6 Apr 2005 15:42:35 -0000 1.357
+++ connection.c 6 Apr 2005 16:16:31 -0000 1.358
@@ -516,7 +516,7 @@
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;