aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-08-26 21:12:53 +0000
committerRoger Dingledine <arma@torproject.org>2005-08-26 21:12:53 +0000
commit715b972300651ea90ead6e9789b268f664cb368f (patch)
tree783b0a5365c7f5d109fdc0aeb31d23b5bb400f69 /src/or
parent47669fa0fdba98dbbc1d37ec60679010c4fd028d (diff)
downloadtor-715b972300651ea90ead6e9789b268f664cb368f.tar
tor-715b972300651ea90ead6e9789b268f664cb368f.tar.gz
disarm a trap
svn:r4859
Diffstat (limited to 'src/or')
-rw-r--r--src/or/routerlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index de7255f8a..2dcbfbb36 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -893,9 +893,10 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg)
if (router->published_on <= old_router->published_on) {
log_fn(LOG_DEBUG, "Skipping not-new descriptor for router '%s'",
router->nickname);
- if (!authdir)
+ if (!authdir) {
/* Update the is_running status to whatever we were told. */
old_router->is_running = router->is_running;
+ }
routerinfo_free(router);
if (msg) *msg = "Router descriptor was not new.";
return -1;