From: Kevin Day Date: Tue, 3 Apr 2012 02:58:17 +0000 (-0500) Subject: Bugfix: remove invalid counter code from firewall X-Git-Tag: 0.3.0~27 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=725a6f6a6d384e1866ab0bd286e978737c9911fa;p=fll Bugfix: remove invalid counter code from firewall The counter2 was being used when it should not have been. --- 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);