diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-13 19:58:21 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-13 19:58:21 +0000 |
commit | 737760f071db14dd85deca072ad87d4256058439 (patch) | |
tree | 692cc45fd1cf54c5d786f0f90808ddce4406a98f /src/or/directory.c | |
parent | 411a18e34c3503aea18ba9675fc20b850c35fea5 (diff) | |
download | tor-737760f071db14dd85deca072ad87d4256058439.tar tor-737760f071db14dd85deca072ad87d4256058439.tar.gz |
fix segfault (connecting to dirserver when network is down)
svn:r580
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 9581f7cae..fb92bf75a 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -63,6 +63,7 @@ void directory_initiate_command(routerinfo_t *router, int command) { switch(connection_connect(conn, router->address, router->addr, router->dir_port)) { case -1: router_mark_as_down(conn->nickname); /* don't try him again */ + connection_remove(conn); connection_free(conn); return; case 0: |