]> Kevux Git Server - fll/commitdiff
Bugfix: The debug mode is not working in firewall.
authorKevin Day <kevin@kevux.org>
Sat, 17 Feb 2024 16:26:54 +0000 (10:26 -0600)
committerKevin Day <kevin@kevux.org>
Sat, 17 Feb 2024 16:26:54 +0000 (10:26 -0600)
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

index 7ce96cfc594aa5bce6d9e35c63a8185d546277dc..fcf0537de533bee32303582f6cd9b953af91991e 100644 (file)
@@ -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);