mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +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:
parent
c9ddf191cf
commit
0d420918e7
1 changed files with 1 additions and 1 deletions
|
@ -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:"");
|
||||
|
|
Loading…
Add table
Reference in a new issue