mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Fix a misuse of strlcpy() introduced by the #11156 patch.
This commit is contained in:
parent
545e2119f2
commit
a787575b7f
4
changes/bug11654
Normal file
4
changes/bug11654
Normal file
@ -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.
|
@ -1510,8 +1510,8 @@ update_router_have_minimum_dir_info(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (should_delay_dir_fetches(get_options(), &delay_fetches_msg)) {
|
if (should_delay_dir_fetches(get_options(), &delay_fetches_msg)) {
|
||||||
log_notice(LD_DIR, "Delaying dir fetches: %s", delay_fetches_msg);
|
log_notice(LD_DIR, "Delaying directory fetches: %s", delay_fetches_msg);
|
||||||
strlcpy(dir_info_status, "%s", sizeof(dir_info_status));
|
strlcpy(dir_info_status, delay_fetches_msg, sizeof(dir_info_status));
|
||||||
res = 0;
|
res = 0;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user