diff options
author | Ermal <eri@pfsense.org> | 2011-05-26 20:51:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-26 20:51:23 +0000 |
commit | b75d32e558bcf374ac807021545263b22470d529 (patch) | |
tree | b8674192c6c949cb4768481931f5eb099f9c8936 /usr/local | |
parent | ab731f540896004f316fac3b7a9657a91a848ee1 (diff) | |
download | pfsense-b75d32e558bcf374ac807021545263b22470d529.zip pfsense-b75d32e558bcf374ac807021545263b22470d529.tar.gz |
Free ipfw rule number after mac pass-through deletion.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/services_captiveportal_mac.php | 1 |
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']]); |