summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2019-04-11 21:28:35 -0400
committerNeel Chauhan <neel@neelc.org>2019-04-11 21:28:35 -0400
commitc07d854772bda558ef8cf4fd71f2673c7ed00083 (patch)
treea689a699336fca5ff1c9a47e29814707d2377bf3 /src/feature
parent4172dcaa62b02593910736110d9d2c94052dbdcb (diff)
downloadtor-c07d854772bda558ef8cf4fd71f2673c7ed00083.tar.gz
tor-c07d854772bda558ef8cf4fd71f2673c7ed00083.zip
Remove callback for setting bridges as running
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/nodelist/networkstatus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feature/nodelist/networkstatus.c b/src/feature/nodelist/networkstatus.c
index bc12fa4075..20881112aa 100644
--- a/src/feature/nodelist/networkstatus.c
+++ b/src/feature/nodelist/networkstatus.c
@@ -2409,7 +2409,7 @@ networkstatus_getinfo_by_purpose(const char *purpose_string, time_t now)
void
networkstatus_dump_bridge_status_to_file(time_t now)
{
- char *status = networkstatus_getinfo_by_purpose("bridge", now);
+ char *status;
char *fname = NULL;
char *thresholds = NULL;
char *published_thresholds_and_status = NULL;
@@ -2418,6 +2418,9 @@ networkstatus_dump_bridge_status_to_file(time_t now)
char fingerprint[FINGERPRINT_LEN+1];
char *fingerprint_line = NULL;
+ dirserv_set_bridges_running(now);
+ status = networkstatus_getinfo_by_purpose("bridge", now);
+
if (me && crypto_pk_get_fingerprint(me->identity_pkey,
fingerprint, 0) >= 0) {
tor_asprintf(&fingerprint_line, "fingerprint %s\n", fingerprint);