1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00

Avoid variable aliases.

This commit is contained in:
Jean Paul Galea 2015-09-15 17:24:45 +00:00
parent 8d6520964f
commit 28ec07af7f

View File

@ -417,14 +417,13 @@ if ($syncres == False)
/* Recreate parameters to make phising test work out
TODO: use timefunctionality in deltatime library instead */
$ad['high'] = $localParams['yk_high'];
$ad['accessed'] = date('Y-m-d H:i:s', $localParams['modified']);
// check the time stamp
if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use'] > $localParams['yk_use'])
{
$ts = ($otpinfo['high'] << 16) + $otpinfo['low'];
$seenTs = ($ad['high'] << 16) + $localParams['yk_low'];
$seenTs = ($localParams['yk_high'] << 16) + $localParams['yk_low'];
$tsDiff = $ts - $seenTs;
$tsDelta = $tsDiff * TS_SEC;