[or-cvs] preemptive bugfix
Roger Dingledine
arma at seul.org
Wed Oct 2 04:07:36 UTC 2002
Update of /home/or/cvsroot/src/or
In directory moria.seul.org:/home/arma/work/onion/cvs/src/or
Modified Files:
main.c
Log Message:
preemptive bugfix
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- main.c 1 Oct 2002 23:37:31 -0000 1.29
+++ main.c 2 Oct 2002 04:07:33 -0000 1.30
@@ -226,8 +226,8 @@
retval = connection_dir_handle_listener_read(conn);
} else {
retval = connection_read_to_buf(conn);
- if (retval < 0 && conn->type == CONN_TYPE_DIR) {
- /* as a special case: forget about this router */
+ if (retval < 0 && conn->type == CONN_TYPE_DIR && conn->state == DIR_CONN_STATE_CONNECTING) {
+ /* it's a directory server and connecting failed: forget about this router */
router_forget_router(conn->addr,conn->port);
}
if (retval >= 0) { /* all still well */
More information about the tor-commits
mailing list