mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
preemptive bugfix
svn:r129
This commit is contained in:
parent
b289e15f07
commit
e3fd91755d
@ -226,8 +226,8 @@ void check_conn_read(int i) {
|
|||||||
retval = connection_dir_handle_listener_read(conn);
|
retval = connection_dir_handle_listener_read(conn);
|
||||||
} else {
|
} else {
|
||||||
retval = connection_read_to_buf(conn);
|
retval = connection_read_to_buf(conn);
|
||||||
if (retval < 0 && conn->type == CONN_TYPE_DIR) {
|
if (retval < 0 && conn->type == CONN_TYPE_DIR && conn->state == DIR_CONN_STATE_CONNECTING) {
|
||||||
/* as a special case: forget about this router */
|
/* it's a directory server and connecting failed: forget about this router */
|
||||||
router_forget_router(conn->addr,conn->port);
|
router_forget_router(conn->addr,conn->port);
|
||||||
}
|
}
|
||||||
if (retval >= 0) { /* all still well */
|
if (retval >= 0) { /* all still well */
|
||||||
|
Loading…
Reference in New Issue
Block a user