aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-09-15 14:11:34 +1000
committerteor <teor2345@gmail.com>2017-09-15 14:11:34 +1000
commit61b5d053580410775a94fc24394a607642258ebd (patch)
tree0448cddfb42aa16faff0c03b2d3b6ca09647aab4 /src/or/control.c
parentd6568bad5e12af0e202f82c3ca86ae9aaeb443e4 (diff)
downloadtor-61b5d053580410775a94fc24394a607642258ebd.tar.gz
tor-61b5d053580410775a94fc24394a607642258ebd.zip
Make control port download status next attempts consistent
Make download status next attempts reported over the control port consistent with the time used by tor. This issue only occurs if a download status has not been reset before it is queried over the control port. Fixes 23525, not in any released version of tor.
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index ce2a4c8cfd..b5dc87b835 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -2158,7 +2158,7 @@ download_status_to_string(const download_status_t *dl)
if (dl) {
/* Get some substrings of the eventual output ready */
- format_iso_time(tbuf, dl->next_attempt_at);
+ format_iso_time(tbuf, download_status_get_next_attempt_at(dl));
switch (dl->schedule) {
case DL_SCHED_GENERIC: