mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
main: Off by one when dumping subsystem list
Fixes #40163 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
@@ -300,7 +300,7 @@ subsystems_thread_cleanup(void)
|
||||
void
|
||||
subsystems_dump_list(void)
|
||||
{
|
||||
for (unsigned i = 0; i < n_tor_subsystems - 1; ++i) {
|
||||
for (unsigned i = 0; i < n_tor_subsystems; ++i) {
|
||||
const subsys_fns_t *sys = tor_subsystems[i];
|
||||
printf("% 4d\t%16s\t%s\n", sys->level, sys->name,
|
||||
sys->location?sys->location:"");
|
||||
|
||||
Reference in New Issue
Block a user