commit 0d420918e71f94bec3fd4c5010e570b45667d48d
Author: David Goulet <dgoulet(a)torproject.org>
Date: Wed Oct 21 13:48:37 2020 -0400
main: Off by one when dumping subsystem list
Fixes #40163
Signed-off-by: David Goulet <dgoulet(a)torproject.org>
---
src/app/main/subsysmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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:"");