1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-27 06:54:15 +01:00

Correct debug log message for too short OTPs.

This commit is contained in:
Fredrik Thulin 2011-03-03 15:45:00 +01:00
parent a5594fa09c
commit f91a7dc99a

View File

@ -563,7 +563,7 @@ pam_sm_authenticate (pam_handle_t * pamh,
password_len = strlen (password); password_len = strlen (password);
if (password_len < (cfg.token_id_length + TOKEN_OTP_LEN)) if (password_len < (cfg.token_id_length + TOKEN_OTP_LEN))
{ {
DBG (("OTP too short: %i < %i", password_len, TOKEN_OTP_LEN)); DBG (("OTP too short to be considered : %i < %i", password_len, (cfg.token_id_length + TOKEN_OTP_LEN)));
retval = PAM_AUTH_ERR; retval = PAM_AUTH_ERR;
goto done; goto done;
} }