diff options
author | Ermal <eri@pfsense.org> | 2013-12-26 20:28:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-26 20:28:23 +0000 |
commit | fed1b37258c8f2576d108be747b8402a99881d3d (patch) | |
tree | 3d870de3ae969838e71b9e311db220fffc5eb439 /etc | |
parent | 9e63dca959a02c70f31207ebb66218a2809e43fe (diff) | |
download | pfsense-fed1b37258c8f2576d108be747b8402a99881d3d.zip pfsense-fed1b37258c8f2576d108be747b8402a99881d3d.tar.gz |
Check if there is a value before trying to do any operation
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 999b2c0..40183b2 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2849,7 +2849,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven * the interface config again, which attempts to spoof the MAC again, * which cycles the link again... */ - if ($wancfg['spoofmac'] && ($wancfg['spoofmac'] != $mac)) { + if (!empty($wancfg['spoofmac']) && ($wancfg['spoofmac'] != $mac)) { mwexec("/sbin/ifconfig " . escapeshellarg($realhwif) . " link " . escapeshellarg($wancfg['spoofmac'])); |