From 65db5a9944ee19a4bafda9c7eed9902c353bd420 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 2 Jun 2013 09:50:00 -0600 Subject: [PATCH] basic_ncsa_auth: fix unused variable warnings (typo in rev.12762) When libcrypto is absent the passwordLength variable becomes unused. Detected by Windows build farm node. --- helpers/basic_auth/NCSA/basic_ncsa_auth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/basic_auth/NCSA/basic_ncsa_auth.cc b/helpers/basic_auth/NCSA/basic_ncsa_auth.cc index 988f625a5d..c65330e8da 100644 --- a/helpers/basic_auth/NCSA/basic_ncsa_auth.cc +++ b/helpers/basic_auth/NCSA/basic_ncsa_auth.cc @@ -149,8 +149,8 @@ main(int argc, char **argv) continue; } char *crypted = NULL; - size_t passwordLength = strlen(passwd); #if HAVE_CRYPT + size_t passwordLength = strlen(passwd); // Bug 3831: given algorithms more secure than DES crypt() does not truncate, so we can ignore the bug 3107 length checks below // '$1$' = MD5, '$2a$' = Blowfish, '$5$' = SHA256 (Linux), '$6$' = SHA256 (BSD) and SHA512 if (passwordLength > 1 && u->passwd[0] == '$' && -- 2.47.2