aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-01-11 15:02:23 -0500
committerGeorge Kadianakis <desnacked@riseup.net>2021-01-13 16:00:54 +0200
commit4d6d3b3c056bd886226ba6c55ef00e06b9c86ae6 (patch)
tree277d90e1885e4c80b7bdcb64219ed9d7d1c5bec3
parent6c0f15500b3aa027c90d1c397d4504bb2f4dd41b (diff)
downloadtor-4d6d3b3c056bd886226ba6c55ef00e06b9c86ae6.tar.gz
tor-4d6d3b3c056bd886226ba6c55ef00e06b9c86ae6.zip
Remove BUG() when checking TOO_MANY_OUTDATED_DIRSERVERS.
Fixes bug #40234; bugfix on 0.3.2.5-alpha.
-rw-r--r--src/feature/nodelist/microdesc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/feature/nodelist/microdesc.c b/src/feature/nodelist/microdesc.c
index dafaabb5e5..90eb938f6d 100644
--- a/src/feature/nodelist/microdesc.c
+++ b/src/feature/nodelist/microdesc.c
@@ -124,8 +124,9 @@ microdesc_note_outdated_dirserver(const char *relay_digest)
tor_assert(outdated_dirserver_list);
/* If the list grows too big, clean it up */
- if (BUG(smartlist_len(outdated_dirserver_list) >
- TOO_MANY_OUTDATED_DIRSERVERS)) {
+ if (smartlist_len(outdated_dirserver_list) > TOO_MANY_OUTDATED_DIRSERVERS) {
+ log_info(LD_GENERAL,"Too many outdated directory servers (%d). Resetting.",
+ smartlist_len(outdated_dirserver_list));
microdesc_reset_outdated_dirservers_list();
}