summaryrefslogtreecommitdiff
path: root/src/or/bridges.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-09-11 14:03:42 +1000
committerNick Mathewson <nickm@torproject.org>2017-09-12 10:38:25 -0400
commit1b5e34badb06bb1a844a6e70164fc5c894d95d0a (patch)
tree824e01c879fdb74f9cacb501dbd5350434c7db82 /src/or/bridges.c
parent93a8ed3b83b5f20768562ca2aff4eba7aca667d8 (diff)
downloadtor-1b5e34badb06bb1a844a6e70164fc5c894d95d0a.tar.gz
tor-1b5e34badb06bb1a844a6e70164fc5c894d95d0a.zip
Add a missing bridge download status reset
17750 made unused download schedules automatically reset. But we should make that explicit.
Diffstat (limited to 'src/or/bridges.c')
-rw-r--r--src/or/bridges.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/bridges.c b/src/or/bridges.c
index 257bb8920b..461f86260f 100644
--- a/src/or/bridges.c
+++ b/src/or/bridges.c
@@ -455,6 +455,8 @@ bridge_add_from_config(bridge_line_t *bridge_line)
b->fetch_status.schedule = DL_SCHED_BRIDGE;
b->fetch_status.backoff = DL_SCHED_RANDOM_EXPONENTIAL;
b->fetch_status.increment_on = DL_SCHED_INCREMENT_ATTEMPT;
+ /* This will fail if UseBridges is not set */
+ download_status_reset(&b->fetch_status);
b->socks_args = bridge_line->socks_args;
if (!bridge_list)
bridge_list = smartlist_new();