aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2014-01-14 14:22:28 +0100
committerErmal Luçi <eri@pfsense.org>2014-01-14 14:22:28 +0100
commit44abb3a8f11bf80649cba713b53aaffb7d60c5d9 (patch)
tree5740d50788d155abf636a518ddb3b2c01ae12df9 /config/openbgpd
parentf3d636fb0d0c64159a449f22da9671ac3732a195 (diff)
downloadpfsense-packages-44abb3a8f11bf80649cba713b53aaffb7d60c5d9.tar.gz
pfsense-packages-44abb3a8f11bf80649cba713b53aaffb7d60c5d9.tar.bz2
pfsense-packages-44abb3a8f11bf80649cba713b53aaffb7d60c5d9.zip
Sprinkle some unsets while here.
Diffstat (limited to 'config/openbgpd')
-rw-r--r--config/openbgpd/openbgpd.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index 435d9a45..9af83758 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -178,6 +178,7 @@ function openbgpd_install_conf() {
// Write out the configuration file
@file_put_contents("{$bgpd_config_base}/bgpd.conf", $conffile);
@chmod("{$bgpd_config_base}/bgpd.conf", 0600);
+ unset($conffile);
// Create rc.d file
$rc_file_stop = <<<EOF
@@ -209,6 +210,7 @@ EOF;
"stop" => $rc_file_stop
)
);
+ unset($rc_file_start, $rc_file_stop);
$_gb = exec("/sbin/sysctl net.inet.ip.ipsec_in_use=1");
// bgpd process running? if so reload, else start.