aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/microdesc.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2021-01-13 16:01:11 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2021-01-13 16:01:11 +0200
commitc931eae9811a3bba3720f22159f43af8ad3a1b1b (patch)
treea3a0ecdb187c38335ffe73df6324601906e3faf1 /src/feature/nodelist/microdesc.c
parent01be7cc5350d7fabe9be79e4097305f0890e34e6 (diff)
parent4d6d3b3c056bd886226ba6c55ef00e06b9c86ae6 (diff)
downloadtor-c931eae9811a3bba3720f22159f43af8ad3a1b1b.tar.gz
tor-c931eae9811a3bba3720f22159f43af8ad3a1b1b.zip
Merge branch 'mr/252' into maint-0.4.5
Diffstat (limited to 'src/feature/nodelist/microdesc.c')
-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 cf7732b8dc..01dccd160b 100644
--- a/src/feature/nodelist/microdesc.c
+++ b/src/feature/nodelist/microdesc.c
@@ -129,8 +129,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();
}