summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-14 22:56:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-14 22:56:53 +0000
commitb419710603cbff3459b1d29e1f3ff741af78baa5 (patch)
tree37dd1596c43567ed486c80d1c7c8bed51bbaa507 /usr/local
parent192fd3d17f29a4ebcadc8cc3454d2510828543a7 (diff)
downloadpfsense-b419710603cbff3459b1d29e1f3ff741af78baa5.zip
pfsense-b419710603cbff3459b1d29e1f3ff741af78baa5.tar.gz
No need to loop through all keys if any of the sizes mismatch
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces_wlan.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc
index eede4d3..fad01bf 100755
--- a/usr/local/www/interfaces_wlan.inc
+++ b/usr/local/www/interfaces_wlan.inc
@@ -87,6 +87,7 @@ function wireless_config_post() {
if(strlen($_POST['key' . $i]) == 26)
continue;
$input_errors[] = "Invalid wep key size. Sizes should be 40 (64) bit keys or 104 (128) bit.";
+ break;
}
}
OpenPOWER on IntegriCloud