summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/circuitbuild.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 5b7c0e5269..0b6860d903 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1203,7 +1203,8 @@ choose_good_exit_server_general(routerlist_t *dir, int need_uptime,
}
info(LD_CIRC,
"Found %d servers that might support %d/%d pending connections.",
- n_best_support, best_support, n_pending_connections);
+ n_best_support, best_support >= 0 ? best_support : 0,
+ n_pending_connections);
preferredexits = smartlist_create();
add_nickname_list_to_smartlist(preferredexits,options->ExitNodes,1,1,1);