diff options
author | Wyllys Ingersoll <Wyllys.Ingersoll@Sun.COM> | 2008-08-12 14:24:18 -0700 |
---|---|---|
committer | Wyllys Ingersoll <Wyllys.Ingersoll@Sun.COM> | 2008-08-12 14:24:18 -0700 |
commit | 20ed34cc7e9de957ef6251e20c0f2d8e43847ea0 (patch) | |
tree | 76257b68b409d2cdedace887cf25bdfa52057f4a /usr/src/lib/crypt_modules | |
parent | 9b3f6b4237fa1168168cca4bdc5c2a8045642bb4 (diff) | |
download | illumos-joyent-20ed34cc7e9de957ef6251e20c0f2d8e43847ea0.tar.gz |
6733782 sha256 algorithm incorrectly builds final salt string
Diffstat (limited to 'usr/src/lib/crypt_modules')
-rw-r--r-- | usr/src/lib/crypt_modules/sha256/crypt_sha.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/lib/crypt_modules/sha256/crypt_sha.c b/usr/src/lib/crypt_modules/sha256/crypt_sha.c index 69f541e107..9fe739f6cb 100644 --- a/usr/src/lib/crypt_modules/sha256/crypt_sha.c +++ b/usr/src/lib/crypt_modules/sha256/crypt_sha.c @@ -23,8 +23,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * Portions of this code from crypt_bsdmd5.so (bsdmd5.c) : * ---------------------------------------------------------------------------- @@ -260,7 +258,7 @@ crypt_genhash_impl(char *ctbuffer, "%srounds=%zu$", ctbuffer, rounds); } - (void) strncat(ctbuffer, (const char *)salt, MAX_SALT_LEN); + (void) strncat(ctbuffer, (const char *)salt, salt_len); (void) strlcat(ctbuffer, "$", ctbufflen); p = ctbuffer + strlen(ctbuffer); ctbufflen -= strlen(ctbuffer); |