1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00

No need to compute brain_session if --brain-client is not set

This commit is contained in:
Jens Steube 2018-11-03 13:15:23 +01:00
parent a4a9d29420
commit b19a03aa84

View File

@ -1671,9 +1671,12 @@ int hashes_init_stage4 (hashcat_ctx_t *hashcat_ctx)
// brain session
#ifdef WITH_BRAIN
const u32 brain_session = brain_compute_session (hashcat_ctx);
if (user_options->brain_client == true)
{
const u32 brain_session = brain_compute_session (hashcat_ctx);
user_options->brain_session = brain_session;
user_options->brain_session = brain_session;
}
#endif
return 0;