]> Kevux Git Server - fll/commitdiff
Bugfix: Firewall program if condition is setting an error flag rather than checking...
authorKevin Day <kevin@kevux.org>
Tue, 13 Feb 2024 00:56:47 +0000 (18:56 -0600)
committerKevin Day <kevin@kevux.org>
Tue, 13 Feb 2024 00:56:47 +0000 (18:56 -0600)
level_3/firewall/c/private-firewall.c

index 496688f2f36eeba27a11a6179483073515e3e8ce..50f3dbe66f539b9ca702223a8a6028c8562df8e6 100644 (file)
@@ -619,7 +619,7 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca
                 status = fll_fss_basic_read(local_buffer, state, &input, &basic_objects, &basic_contents, 0, &delimits, 0);
               }
 
-              if (F_status_set_error(status)) {
+              if (F_status_is_error(status)) {
                 status = F_status_set_fine(status);
 
                 if (status == F_parameter) {