summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-25 22:04:32 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-25 22:04:32 -0400
commit52bcf4b21f819454bcdaef2d2348a74ca84e57a9 (patch)
treeb3504a0c774fa30a5b9aedd14a123af74bf05d38 /etc/inc/vpn.inc
parentd86d411a92fe9499b8e653f4621795e30405d1da (diff)
downloadpfsense-52bcf4b21f819454bcdaef2d2348a74ca84e57a9.zip
pfsense-52bcf4b21f819454bcdaef2d2348a74ca84e57a9.tar.gz
Check correct variables
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 1bfa78d..edbd7f7 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -644,8 +644,9 @@ EOD;
/* in some cases where include ordering is suspect these variables
are somehow 0 and we enter this loop forever and timeout after 900
seconds wrecking bootup */
- if($keylen !=0 and $key_hi != 0 and $key_step !=0) {
+ if($key_hi != 0 and $key_lo !=0 and $key_step !=0) {
for ($keylen = $key_hi; $keylen >= $key_lo; $keylen -= $key_step) {
+ echo "$keylen = $key_hi; $keylen >= $key_lo; $keylen -= $key_step \n";
if ($ealgos)
$ealgos = $ealgos.", ";
$ealgos = $ealgos.$ealg_id." ".$keylen;
OpenPOWER on IntegriCloud