Where generic_salt_decode() is used, the generic_salt_encode() should be used, too
This commit is contained in:
@@ -155,9 +155,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
|
||||
out_len += 1;
|
||||
|
||||
memcpy (out_buf + out_len, salt->salt_buf, salt->salt_len);
|
||||
|
||||
out_len += salt->salt_len;
|
||||
out_len += generic_salt_encode (hashconfig, (const u8 *) salt->salt_buf, (const int) salt->salt_len, out_buf + out_len);
|
||||
|
||||
return out_len;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user