summaryrefslogtreecommitdiff
path: root/src/mod_authn_file.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-12-17 17:54:53 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2016-12-17 17:54:53 -0500
commit9619d643ff27085e5d59d14a3c2abe4864bdaa2d (patch)
treed1b6f173b92b1893146e3a450ca729a743db3382 /src/mod_authn_file.c
parent17f6595e1a5eb6fd22ba5aec360a22d062cd424c (diff)
downloadlighttpd-git-9619d643ff27085e5d59d14a3c2abe4864bdaa2d.tar.gz
[build] compile fixes for AIX
x-ref: https://www.lighttpd.net/2016/10/31/1.4.43/ (see comments section)
Diffstat (limited to 'src/mod_authn_file.c')
-rw-r--r--src/mod_authn_file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mod_authn_file.c b/src/mod_authn_file.c
index a4949578..023a58a1 100644
--- a/src/mod_authn_file.c
+++ b/src/mod_authn_file.c
@@ -641,7 +641,11 @@ static handler_t mod_authn_file_htpasswd_basic(server *srv, connection *con, voi
char *crypted;
#if defined(HAVE_CRYPT_R)
struct crypt_data crypt_tmp_data;
+ #ifdef _AIX
+ memset(&crypt_tmp_data, 0, sizeof(crypt_tmp_data));
+ #else
crypt_tmp_data.initialized = 0;
+ #endif
#endif
#ifdef USE_OPENSSL /* (for MD4_*() (e.g. MD4_Update())) */
if (0 == memcmp(password->ptr, CONST_STR_LEN("$1+ntlm$"))) {