summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-22 21:28:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-22 21:28:09 +0000
commitd1d16ec7ab2962842c9d0964426ce334af0906a7 (patch)
tree0ac084f43fc3e231c2646ab3a822d8af80f5af8a /etc/inc/pfsense-utils.inc
parente78c077151eb4009cdaf5663429f44b958fca805 (diff)
downloadpfsense-d1d16ec7ab2962842c9d0964426ce334af0906a7.zip
pfsense-d1d16ec7ab2962842c9d0964426ce334af0906a7.tar.gz
Fix tdr_get_next_ipfw_rule to not return 2 every time.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index a8e2101..5f147ec 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -496,7 +496,7 @@ function tdr_install_rule($rule) {
******/
function tdr_get_next_ipfw_rule() {
global $tdr_next_ipfw_rule;
- if(!$tdr_next_ipfw_rule)
+ if(intval($tdr_next_ipfw_rule) < 2)
$tdr_next_ipfw_rule = 2;
return $tdr_next_ipfw_rule;
}
OpenPOWER on IntegriCloud