Преглед изворни кода

Replace return with continue in update_consensus_networkstatus_downloads

Fix for bug 9564; bugfix on 0.2.3.14-alpha.
Nick Mathewson пре 10 година
родитељ
комит
2530c84220
2 измењених фајлова са 6 додато и 1 уклоњено
  1. 5 0
      changes/bug9564
  2. 1 1
      src/or/networkstatus.c

+ 5 - 0
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.

+ 1 - 1
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);