Merge branch 'fix-sha256-crypt' of https://github.com/grawity/charybdis

This commit is contained in:
Jilles Tjoelker 2013-11-22 23:48:38 +01:00
commit 88c478c2d2

View file

@ -1567,7 +1567,7 @@ static char *rb_sha256_crypt_r(const char *key, const char *salt, char *buffer,
rb_sha256_init_ctx(&alt_ctx);
/* For every character in the password add the entire password. */
for (cnt = 0; cnt < (size_t)(16 + alt_result[0]); ++cnt)
for (cnt = 0; cnt < key_len; ++cnt)
rb_sha256_process_bytes(key, key_len, &alt_ctx);
/* Finish the digest. */