diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-12 19:25:24 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-12 19:25:32 +0100 |
commit | 35e3d35016a2854c5e95c6df18332c8b116aa5e2 (patch) | |
tree | 0676b3e43b45674d4eb24da07d3e54d1a505c36b /etc | |
parent | eab9d9c142c915e3c2a89a0bf6a11313af37eed7 (diff) | |
download | pfsense-35e3d35016a2854c5e95c6df18332c8b116aa5e2.zip pfsense-35e3d35016a2854c5e95c6df18332c8b116aa5e2.tar.gz |
Do not leak firewall rules as well when (re)creating rules
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/captiveportal.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 94c4dd8..a0da275 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -484,7 +484,10 @@ function captiveportal_init_rules($reinit = false) { captiveportal_load_modules(); mwexec("/sbin/ipfw zone {$cpzoneid} create", true); + + /* Cleanup so nothing is leaked */ captiveportal_free_dnrules(); + unlink_if_exists("{$g['vardb_path']}/captiveportal_{$cpzone}.rules"); $cpips = array(); $ifaces = get_configured_interface_list(); |