aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-10-21 13:48:37 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-10-21 13:48:37 -0400
commit0d420918e71f94bec3fd4c5010e570b45667d48d (patch)
tree5794e1f49911e40e77e9f218a16d02dcbe28e1b2
parentc9ddf191cfca1769c444a912d2137c773c499fb6 (diff)
downloadtor-0d420918e71f94bec3fd4c5010e570b45667d48d.tar.gz
tor-0d420918e71f94bec3fd4c5010e570b45667d48d.zip
main: Off by one when dumping subsystem list
Fixes #40163 Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r--src/app/main/subsysmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main/subsysmgr.c b/src/app/main/subsysmgr.c
index de601d28cd..349803cd46 100644
--- a/src/app/main/subsysmgr.c
+++ b/src/app/main/subsysmgr.c
@@ -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:"");