mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-27 06:54:16 +01:00
Fix bug.
- this was not introduced by my refactoring. - LOG_ALERT for; yk_low, yk_high, nonce was written only if yk_use failed to be parsed. - as a result, this commit might change LOG_ALERT output.
This commit is contained in:
parent
a0f57bd674
commit
3aecc617c3
@ -233,19 +233,19 @@ class SyncLib
|
|||||||
}
|
}
|
||||||
$resParams['yk_use']=$out[1];
|
$resParams['yk_use']=$out[1];
|
||||||
|
|
||||||
preg_match("/^yk_high=(-1|[0-9]+)/m", $str, $out);
|
$i = preg_match("/^yk_high=(-1|[0-9]+)/m", $str, $out);
|
||||||
if ($i != 1) {
|
if ($i != 1) {
|
||||||
$this->log(LOG_ALERT, "cannot parse high value: $str");
|
$this->log(LOG_ALERT, "cannot parse high value: $str");
|
||||||
}
|
}
|
||||||
$resParams['yk_high']=$out[1];
|
$resParams['yk_high']=$out[1];
|
||||||
|
|
||||||
preg_match("/^yk_low=(-1|[0-9]+)/m", $str, $out);
|
$i = preg_match("/^yk_low=(-1|[0-9]+)/m", $str, $out);
|
||||||
if ($i != 1) {
|
if ($i != 1) {
|
||||||
$this->log(LOG_ALERT, "cannot parse low value: $str");
|
$this->log(LOG_ALERT, "cannot parse low value: $str");
|
||||||
}
|
}
|
||||||
$resParams['yk_low']=$out[1];
|
$resParams['yk_low']=$out[1];
|
||||||
|
|
||||||
preg_match("/^nonce=([[:alnum:]]+)/m", $str, $out);
|
$i = preg_match("/^nonce=([[:alnum:]]+)/m", $str, $out);
|
||||||
if ($i != 1) {
|
if ($i != 1) {
|
||||||
$this->log(LOG_ALERT, "cannot parse counter value: $str");
|
$this->log(LOG_ALERT, "cannot parse counter value: $str");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user