[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...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] bugfix: an offline OP would leak all its sockets and stop w...
- From: arma@seul.org (Roger Dingledine)
- Date: Fri, 28 Nov 2003 21:50:15 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 28 Nov 2003 21:50:34 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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. */