From 52662f2a82ad7f3e20d57388325065366bde8b88 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 17 Feb 2024 10:26:54 -0600 Subject: [PATCH] Bugfix: The debug mode is not working in firewall. The debug verbositity mode is at the 5th position in the array and is not being used because the used length is set to 4 instead of 5. --- level_3/firewall/c/firewall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_3/firewall/c/firewall.c b/level_3/firewall/c/firewall.c index 7ce96cf..fcf0537 100644 --- a/level_3/firewall/c/firewall.c +++ b/level_3/firewall/c/firewall.c @@ -109,7 +109,7 @@ extern "C" { // Identify priority of verbosity related parameters. { f_console_parameter_id_t ids[5] = { firewall_parameter_verbosity_quiet_e, firewall_parameter_verbosity_error_e, firewall_parameter_verbosity_normal_e, firewall_parameter_verbosity_verbose_e, firewall_parameter_verbosity_debug_e }; - const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4); + const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 5); f_console_parameter_id_t choice = 0; status = f_console_parameter_prioritize_right(main->parameters, choices, &choice); -- 1.8.3.1