tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 0d420918e71f94bec3fd4c5010e570b45667d48d
parent c9ddf191cfca1769c444a912d2137c773c499fb6
Author: David Goulet <dgoulet@torproject.org>
Date:   Wed, 21 Oct 2020 13:48:37 -0400

main: Off by one when dumping subsystem list

Fixes #40163

Signed-off-by: David Goulet <dgoulet@torproject.org>

Diffstat:
Msrc/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 @@ -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:"");