[tor-commits] [tor/master] whitespace fixes

nickm at torproject.org nickm at torproject.org
Thu Apr 23 13:36:49 UTC 2015


commit c3894473fee0199de50904973abb75fe2935451f
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Apr 23 09:36:43 2015 -0400

    whitespace fixes
---
 src/common/crypto.c |    2 +-
 src/or/main.c       |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/common/crypto.c b/src/common/crypto.c
index f0d4fbb..f338114 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -2506,7 +2506,7 @@ static const char base64_encode_table[64] = {
  * bytes. Return the number of bytes written on success; -1 if
  * destlen is too short, or other failure.
  *
- * If <b>flags</b>&BASE64_ENCODE_MULTILINE is true, return encoded 
+ * If <b>flags</b>&BASE64_ENCODE_MULTILINE is true, return encoded
  * output in multiline format (64 character, `\n' terminated lines).
  */
 int
diff --git a/src/or/main.c b/src/or/main.c
index 22b006a..3fb7de6 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1623,7 +1623,8 @@ run_scheduled_events(time_t now)
       time_to.check_for_correct_dns < now &&
       ! router_my_exit_policy_is_reject_star()) {
     if (!time_to.check_for_correct_dns) {
-      time_to.check_for_correct_dns = crypto_rand_time_range(now, now + 120) + 60;
+      time_to.check_for_correct_dns =
+        crypto_rand_time_range(now + 60, now + 180);
     } else {
       dns_launch_correctness_checks();
       time_to.check_for_correct_dns = now + 12*3600 +



More information about the tor-commits mailing list