summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/entrynodes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index 8715af7957..2e46aba02c 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -638,7 +638,8 @@ choose_guard_selection(const or_options_t *options,
*/
static int have_warned_extreme_threshold = 0;
- if (n_passing_filter < extreme_threshold &&
+ if (n_guards &&
+ n_passing_filter < extreme_threshold &&
! have_warned_extreme_threshold) {
have_warned_extreme_threshold = 1;
const double exclude_frac =