summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-06-02 22:20:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-06-02 22:20:40 +0000
commit9bda2241018b6bfe1df1c199446009b2cd792997 (patch)
tree784990b5315479e4f0435ff6c22157d5734241cc /etc/inc/config.inc
parent3121018425bc40fea6936f76048eae9fb62707aa (diff)
downloadpfsense-9bda2241018b6bfe1df1c199446009b2cd792997.zip
pfsense-9bda2241018b6bfe1df1c199446009b2cd792997.tar.gz
Close STDIN ($fp) handle before returning back to shell. Major doh's.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 2998955..a878223 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1439,6 +1439,7 @@ EOD;
echo "\nEnter the LAN interface name or 'a' for auto-detection: ";
$lanif = chop(fgets($fp));
if ($lanif === "") {
+ fclose($fp);
return;
}
@@ -1512,7 +1513,7 @@ EOD;
Error: you cannot assign the same interface name twice!
EOD;
-
+ fclose($fp);
return;
}
}
@@ -1584,6 +1585,8 @@ EOD;
EOD;
+ fclose($fp);
+
if($g['booting'])
return;
OpenPOWER on IntegriCloud