From: Aki Tuomi Date: Tue, 1 Sep 2020 06:57:23 +0000 (+0300) Subject: auth: password-scheme - Use UINT_MAX when calling password_generate_otp X-Git-Tag: 2.3.13~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8c83f60613e3e465ae86aec8f60a9e396364421;p=thirdparty%2Fdovecot%2Fcore.git auth: password-scheme - Use UINT_MAX when calling password_generate_otp --- diff --git a/src/auth/password-scheme.c b/src/auth/password-scheme.c index e22cb3f88a..01c5e85276 100644 --- a/src/auth/password-scheme.c +++ b/src/auth/password-scheme.c @@ -743,7 +743,7 @@ static int otp_verify(const char *plaintext, const struct password_generate_para const char *password, *generated; password = t_strndup(raw_password, size); - if (password_generate_otp(plaintext, password, -1, &generated) < 0) { + if (password_generate_otp(plaintext, password, UINT_MAX, &generated) < 0) { *error_r = "Invalid OTP data in passdb"; return -1; }