diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-25 22:04:32 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-25 22:04:32 -0400 |
commit | 52bcf4b21f819454bcdaef2d2348a74ca84e57a9 (patch) | |
tree | b3504a0c774fa30a5b9aedd14a123af74bf05d38 | |
parent | d86d411a92fe9499b8e653f4621795e30405d1da (diff) | |
download | pfsense-52bcf4b21f819454bcdaef2d2348a74ca84e57a9.zip pfsense-52bcf4b21f819454bcdaef2d2348a74ca84e57a9.tar.gz |
Check correct variables
-rw-r--r-- | etc/inc/vpn.inc | 3 |
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; |