summaryrefslogtreecommitdiff
path: root/src/mod_authn_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_authn_file.c')
-rw-r--r--src/mod_authn_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_authn_file.c b/src/mod_authn_file.c
index 1e16075e..6f76794a 100644
--- a/src/mod_authn_file.c
+++ b/src/mod_authn_file.c
@@ -443,7 +443,7 @@ static handler_t mod_authn_file_plain_basic(server *srv, connection *con, void *
mod_authn_file_patch_connection(srv, con, p);
rc = mod_authn_file_htpasswd_get(srv, p->conf.auth_plain_userfile, CONST_BUF_LEN(username), password_buf);
if (0 == rc) {
- rc = http_auth_const_time_memeq(CONST_BUF_LEN(password_buf), pw, strlen(pw)) ? 0 : -1;
+ rc = http_auth_const_time_memeq_pad(CONST_BUF_LEN(password_buf), pw, strlen(pw)) ? 0 : -1;
}
buffer_free(password_buf);
return 0 == rc && http_auth_match_rules(require, username->ptr, NULL, NULL)