Browse Source

Merge branch 'bug11654_squashed'

Nick Mathewson 10 years ago
parent
commit
a2b59dba71
2 changed files with 6 additions and 2 deletions
  1. 4 0
      changes/bug11654
  2. 2 2
      src/or/nodelist.c

+ 4 - 0
changes/bug11654

@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Fix a broken log message about delayed directory fetches that
+      was caused by a misuse of strlcpy(). Fixes bug 11654; bugfix on
+      0.2.5.3-alpha.

+ 2 - 2
src/or/nodelist.c

@@ -1510,8 +1510,8 @@ update_router_have_minimum_dir_info(void)
   }
 
   if (should_delay_dir_fetches(get_options(), &delay_fetches_msg)) {
-    log_notice(LD_DIR, "Delaying dir fetches: %s", delay_fetches_msg);
-    strlcpy(dir_info_status, "%s",  sizeof(dir_info_status));
+    log_notice(LD_DIR, "Delaying directory fetches: %s", delay_fetches_msg);
+    strlcpy(dir_info_status, delay_fetches_msg,  sizeof(dir_info_status));
     res = 0;
     goto done;
   }