summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-03-07 14:45:45 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-03-07 14:45:45 -0500
commitabfd0c9bcdf4b31d64983ea557de018afbcd720d (patch)
tree53302c4d6570051c2432793d138eacf2f6123a1f /etc
parent7eadaa9c733e696c30b5a6447b1d62aec63db635 (diff)
downloadpfsense-abfd0c9bcdf4b31d64983ea557de018afbcd720d.zip
pfsense-abfd0c9bcdf4b31d64983ea557de018afbcd720d.tar.gz
Ensure string is cleared out if needed
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index e6b61e4..2237193 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1642,6 +1642,8 @@ EOD;
case 'hostap':
if($wlcfg['wpa']['passphrase'])
$wpa_passphrase = "wpa_passphrase={$wlcfg['wpa']['passphrase']}\n";
+ else
+ $wpa_passphrase = "";
if (isset($wlcfg['wpa']['enable'])) {
$wpa .= <<<EOD
interface={$if}
OpenPOWER on IntegriCloud