diff options
author | Stefan Fritsch <sf@apache.org> | 2009-10-24 18:37:28 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2009-10-24 18:37:28 +0000 |
commit | 7dc061ebd1f293780194941b2ac5a171487e7987 (patch) | |
tree | 712c5c3cb799d889967f5e198725508ffaf0f5a9 /support/htpasswd.c | |
parent | a67fd0c26d49afed9851c0bfc2d927195cf753bb (diff) | |
download | httpd-7dc061ebd1f293780194941b2ac5a171487e7987.tar.gz |
Fix brown-paper-bag bug.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@829431 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/htpasswd.c')
-rw-r--r-- | support/htpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/htpasswd.c b/support/htpasswd.c index 20c616d382..98865c434e 100644 --- a/support/htpasswd.c +++ b/support/htpasswd.c @@ -222,7 +222,7 @@ static int mkrecord(char *user, char *record, apr_size_t rlen, char *passwd, if (strlen(pw) > 8) { char *truncpw = strdup(pw); truncpw[8] = '\0'; - if (!strcmp(cpw, crypt(pw, salt))) { + if (!strcmp(cpw, crypt(truncpw, salt))) { apr_file_printf(errfile, "Warning: Password truncated to 8 characters " "by CRYPT algorithm." NL); } |