summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-22 21:31:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-22 21:31:37 +0000
commit22c9fc09965466c03a6192ffd469fba22f7ac906 (patch)
tree5ffa802d1298bfa955755aa3bec23ff548a5c893 /etc/inc
parent98aa3eb6f21fea2ba3dcec33e95de77c2901aef5 (diff)
downloadpfsense-22c9fc09965466c03a6192ffd469fba22f7ac906.zip
pfsense-22c9fc09965466c03a6192ffd469fba22f7ac906.tar.gz
Correctly incriment skipto rule number.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index f87feda..2facb14 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -460,7 +460,8 @@ function tdr_create_ipfw_rule($rule, $type) {
/* piece together the actual user rule */
if($type == "allow") {
- $next_rule = tdr_get_next_ipfw_rule+2;
+ $next_rule = tdr_get_next_ipfw_rule();
+ $next_rule = $next_rule+1;
$type = "skipto $next_rule";
}
OpenPOWER on IntegriCloud