]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update control_free_all() for #27169
authorTaylor Yu <catalyst@torproject.org>
Mon, 19 Nov 2018 21:48:08 +0000 (15:48 -0600)
committerTaylor Yu <catalyst@torproject.org>
Mon, 19 Nov 2018 21:48:08 +0000 (15:48 -0600)
Reset the added bootstrap tracking state introduced by ticket 27169.
Fixes bug 28524; bugfix on 0.3.5.1-alpha.

changes/bug28524 [new file with mode: 0644]
src/feature/control/control.c

diff --git a/changes/bug28524 b/changes/bug28524
new file mode 100644 (file)
index 0000000..1cad700
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (restart-in-process, boostrap):
+    - Add missing resets of bootstrap tracking state when shutting
+      down (regression caused by ticket 27169).  Fixes bug 28524;
+      bugfix on 0.3.5.1-alpha.
index f0db97dc8952d4c252232c36e56c58cfe14143da..795902e6f47fd31194d6690373b85c024c7c78e7 100644 (file)
@@ -7880,8 +7880,12 @@ control_free_all(void)
     flush_queued_events_event = NULL;
   }
   bootstrap_percent = BOOTSTRAP_STATUS_UNDEF;
+  bootstrap_phase = BOOTSTRAP_STATUS_UNDEF;
   notice_bootstrap_percent = 0;
   bootstrap_problems = 0;
+  bootstrap_first_orconn = 0;
+  bootstrap_dir_progress = BOOTSTRAP_STATUS_UNDEF;
+  bootstrap_dir_phase = BOOTSTRAP_STATUS_UNDEF;
   authentication_cookie_is_set = 0;
   global_event_mask = 0;
   disable_log_messages = 0;