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

Curl errno/error is order dependent?!

This commit is contained in:
Simon Josefsson 2009-03-11 11:18:56 +00:00
parent 49c122436c
commit 136a6c9c98

View File

@ -108,7 +108,8 @@ function decryptOTP($otp, $base_url) {
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$response = curl_exec($ch);
$error = curl_error ($ch);
debug("YK-KSM response: $response error: " . $error);
$errno = curl_errno ($ch);
debug("YK-KSM response: $response errno: " . $errno . " error: " . $error);
$info = curl_getinfo ($ch);
debug($info);
curl_close($ch);