[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] fix fix: accept into addrbuf, not remote



Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv3505/src/or

Modified Files:
      Tag: tor-0_0_9-patches
	connection.c 
Log Message:
fix fix: accept into addrbuf, not remote

Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.310.2.8
retrieving revision 1.310.2.9
diff -u -d -r1.310.2.8 -r1.310.2.9
--- connection.c	24 Mar 2005 07:20:02 -0000	1.310.2.8
+++ connection.c	24 Mar 2005 09:00:11 -0000	1.310.2.9
@@ -445,7 +445,7 @@
   int remotelen=256;
   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;