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

[or-cvs] bugfix: an offline OP would leak all its sockets and stop w...



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	connection.c 
Log Message:
bugfix: an offline OP would leak all its sockets and stop working


Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection.c,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- connection.c	23 Nov 2003 18:14:19 -0000	1.132
+++ connection.c	29 Nov 2003 02:50:12 -0000	1.133
@@ -274,6 +274,7 @@
       /* yuck. kill it. */
       perror("connect");
       log_fn(LOG_INFO,"Connect() to %s:%u failed.",address,port);
+      close(s);
       return -1;
     } else {
       /* it's in progress. set state appropriately and return. */