From eb0e8eed2a56dd92858c0bd6ca05cd2ed548afc0 Mon Sep 17 00:00:00 2001 From: jsteube Date: Sat, 16 Feb 2019 12:22:50 +0100 Subject: [PATCH] Fix -m 23 salt buffer size --- src/modules/module_00023.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module_00023.c b/src/modules/module_00023.c index 7bdedd33c..ba590db73 100644 --- a/src/modules/module_00023.c +++ b/src/modules/module_00023.c @@ -124,7 +124,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE tmp[3] += MD5M_D; } - char tmp_salt[48]; + char tmp_salt[SALT_MAX]; const int salt_len = generic_salt_encode (hashconfig, (const u8 *) salt->salt_buf, (const int) salt->salt_len - 8, (u8 *) tmp_salt);