summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-26 20:51:23 +0000
committerErmal <eri@pfsense.org>2011-05-26 20:51:23 +0000
commitb75d32e558bcf374ac807021545263b22470d529 (patch)
treeb8674192c6c949cb4768481931f5eb099f9c8936 /usr/local
parentab731f540896004f316fac3b7a9657a91a848ee1 (diff)
downloadpfsense-b75d32e558bcf374ac807021545263b22470d529.zip
pfsense-b75d32e558bcf374ac807021545263b22470d529.tar.gz
Free ipfw rule number after mac pass-through deletion.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/services_captiveportal_mac.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_mac.php b/usr/local/www/services_captiveportal_mac.php
index 25c250c..f42ac80 100755
--- a/usr/local/www/services_captiveportal_mac.php
+++ b/usr/local/www/services_captiveportal_mac.php
@@ -108,6 +108,7 @@ if ($_GET['act'] == "del") {
if ($a_passthrumacs[$_GET['id']]) {
$ruleno = captiveportal_get_ipfw_passthru_ruleno($a_passthrumacs[$_GET['id']]['mac']);
if ($ruleno) {
+ captiveportal_free_ipfw_ruleno($ruleno);
mwexec("/sbin/ipfw delete {$ruleno}; /sbin/ipfw delete " . ++$ruleno);
}
unset($a_passthrumacs[$_GET['id']]);
OpenPOWER on IntegriCloud