diff options
-rw-r--r-- | src/or/onion.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 20a1f36607..7abdbe63bc 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -351,12 +351,13 @@ static routerinfo_t *choose_good_exit_server(directory_t *dir) if (i) { --i; } else { + log_fn(LOG_DEBUG, "Chose exit server '%s'", dir->routers[i]->nickname); return dir->routers[j]; } } } - log_fn(LOG_DEBUG, "Chose exit server '%s'", dir->routers[i]->nickname); - return dir->routers[i]; + assert(0); + return NULL; } cpath_build_state_t *onion_new_cpath_build_state(void) { |