]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a misuse of strlcpy() introduced by the #11156 patch.
authorGeorge Kadianakis <desnacked@riseup.net>
Thu, 1 May 2014 13:44:29 +0000 (14:44 +0100)
committerNick Mathewson <nickm@torproject.org>
Thu, 1 May 2014 16:34:50 +0000 (12:34 -0400)
changes/bug11654 [new file with mode: 0644]
src/or/nodelist.c

diff --git a/changes/bug11654 b/changes/bug11654
new file mode 100644 (file)
index 0000000..97c70b2
--- /dev/null
@@ -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.
index a38a6d4993daea595130479505c47b889b43e146..09232f9f9984ff0ffce2af9b0aba6cec9876bdd7 100644 (file)
@@ -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;
   }