Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_user.c')
-rw-r--r--src/os/unix/ngx_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/ngx_user.c b/src/os/unix/ngx_user.c
index cbb08a852..b40a2b721 100644
--- a/src/os/unix/ngx_user.c
+++ b/src/os/unix/ngx_user.c
@@ -33,8 +33,8 @@ ngx_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted)
ngx_set_errno(0);
cd.initialized = 0;
- /* work around the glibc-2.2.5 bug */
- cd.current_saltbits = 0;
+ /* work around the glibc bug */
+ cd.current_salt[0] = ~salt[0];
value = crypt_r((char *) key, (char *) salt, &cd);