From 9632ef57518d1209c39ea8bd72ee0b03c7ea7797 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 10 Jun 2012 13:31:20 -0500 Subject: [PATCH] Bugfix: Fix usage of rule_contents for protocol none option The if condition that is checking for the existing of the protocol option 'none' was improperly setup. It was using the rule_objects instead of the rule_contents and therefore would never validate. --- level_3/firewall/c/private-firewall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_3/firewall/c/private-firewall.c b/level_3/firewall/c/private-firewall.c index d142ef5..be151d6 100644 --- a/level_3/firewall/c/private-firewall.c +++ b/level_3/firewall/c/private-firewall.c @@ -222,7 +222,7 @@ if (f_error_is_error(status)) break; - if (fl_compare_strings(local.buffer.string + local.rule_objects.array[i].start, (f_string) firewall_protocol_none, length, firewall_protocol_none_length) == f_equal_to) { + if (fl_compare_strings(local.buffer.string + local.rule_contents.array[i].array[0].start, (f_string) firewall_protocol_none, length, firewall_protocol_none_length) == f_equal_to) { use_protocol = f_false; } else { strncat(protocol.string, local.buffer.string + local.rule_contents.array[i].array[0].start, length); -- 1.8.3.1