From 725a6f6a6d384e1866ab0bd286e978737c9911fa Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 2 Apr 2012 21:58:17 -0500 Subject: [PATCH] Bugfix: remove invalid counter code from firewall The counter2 was being used when it should not have been. --- level_3/firewall/c/firewall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_3/firewall/c/firewall.c b/level_3/firewall/c/firewall.c index 87e723a..b955818 100644 --- a/level_3/firewall/c/firewall.c +++ b/level_3/firewall/c/firewall.c @@ -696,8 +696,8 @@ extern "C"{ f_string_length max_size = 0; f_bool new_chain = f_true; - counter2 = data->objects.array[data->custom.array[counter2]].start; - max_size = data->objects.array[data->custom.array[counter2]].stop - data->objects.array[data->custom.array[counter2]].start + 1; + counter2 = input.start; + max_size = input.stop - input.start + 1; if (max_size >= custom_chain.size) { f_resize_dynamic_string(status, custom_chain, max_size + firewall_default_allocation_step); -- 1.8.3.1