[tor-commits] [tor/release-0.2.4] Replace return with continue in update_consensus_networkstatus_downloads

arma at torproject.org arma at torproject.org
Sun Sep 1 00:11:41 UTC 2013


commit 2530c842207ecbec0d178fa5ce804a61a1c6ec6c
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Aug 22 10:00:37 2013 -0400

    Replace return with continue in update_consensus_networkstatus_downloads
    
    Fix for bug 9564; bugfix on 0.2.3.14-alpha.
---
 changes/bug9564        |    5 +++++
 src/or/networkstatus.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/changes/bug9564 b/changes/bug9564
new file mode 100644
index 0000000..0df00e3
--- /dev/null
+++ b/changes/bug9564
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - If the time to download the next old-style networkstatus is in
+      the future, do not decline to consider whether to download the
+      next microdescriptor networkstatus. Fixes bug 9564. Bugfix on
+      0.2.3.14-alpha.
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 2553a74..e780ead 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1239,7 +1239,7 @@ update_consensus_networkstatus_downloads(time_t now)
     }
 
     if (time_to_download_next_consensus[i] > now)
-      return; /* Wait until the current consensus is older. */
+      continue; /* Wait until the current consensus is older. */
 
     resource = networkstatus_get_flavor_name(i);
 





More information about the tor-commits mailing list