1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 20:39:17 +00:00

Fix uninitialized salt buffer in ascii_digest()

This commit is contained in:
jsteube 2016-11-12 16:03:52 +01:00
parent 17d2726c24
commit d4a7cbf101

View File

@ -13192,13 +13192,13 @@ int ascii_digest (hashcat_ctx_t *hashcat_ctx, char *out_buf, const u32 salt_pos,
}
}
u32 isSalted = ((hashconfig->salt_type == SALT_TYPE_INTERN)
| (hashconfig->salt_type == SALT_TYPE_EXTERN)
| (hashconfig->salt_type == SALT_TYPE_EMBEDDED));
salt_t salt = { 0 };
salt_t salt;
const bool isSalted = ((hashconfig->salt_type == SALT_TYPE_INTERN)
| (hashconfig->salt_type == SALT_TYPE_EXTERN)
| (hashconfig->salt_type == SALT_TYPE_EMBEDDED));
if (isSalted)
if (isSalted == true)
{
memset (&salt, 0, sizeof (salt_t));