diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-06-02 22:21:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-06-02 22:21:01 +0000 |
commit | 119cd3aface4e3a3976331da5e427b1ebe9432e6 (patch) | |
tree | 33c3a50187adfa8c0f597f9335539473b4181db3 /etc/inc/config.inc | |
parent | 9c51b6f6bb6c2a6bec28b0d007d9d346f1d326c2 (diff) | |
download | pfsense-119cd3aface4e3a3976331da5e427b1ebe9432e6.zip pfsense-119cd3aface4e3a3976331da5e427b1ebe9432e6.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.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index a8e3950..81e0ad0 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1308,6 +1308,7 @@ EOD; echo "\nEnter the LAN interface name or 'a' for auto-detection: "; $lanif = chop(fgets($fp)); if ($lanif === "") { + fclose($fp); return; } @@ -1381,7 +1382,7 @@ EOD; Error: you cannot assign the same interface name twice! EOD; - + fclose($fp); return; } } @@ -1453,6 +1454,8 @@ EOD; EOD; + fclose($fp); + if($g['booting']) return; |