Add some additional start-up checks
This commit is contained in:
+13
-13
@@ -52,27 +52,27 @@ static void loopback_format_plain (hashcat_ctx_t *hashcat_ctx, const u8 *plain_p
|
||||
}
|
||||
}
|
||||
|
||||
void loopback_init (hashcat_ctx_t *hashcat_ctx)
|
||||
int loopback_init (hashcat_ctx_t *hashcat_ctx)
|
||||
{
|
||||
loopback_ctx_t *loopback_ctx = hashcat_ctx->loopback_ctx;
|
||||
user_options_t *user_options = hashcat_ctx->user_options;
|
||||
|
||||
loopback_ctx->enabled = false;
|
||||
|
||||
if (user_options->benchmark == true) return;
|
||||
if (user_options->keyspace == true) return;
|
||||
if (user_options->left == true) return;
|
||||
if (user_options->opencl_info == true) return;
|
||||
if (user_options->show == true) return;
|
||||
if (user_options->stdout_flag == true) return;
|
||||
if (user_options->usage == true) return;
|
||||
if (user_options->version == true) return;
|
||||
|
||||
loopback_ctx->enabled = true;
|
||||
|
||||
loopback_ctx->fp = NULL;
|
||||
if (user_options->benchmark == true) return 0;
|
||||
if (user_options->keyspace == true) return 0;
|
||||
if (user_options->left == true) return 0;
|
||||
if (user_options->opencl_info == true) return 0;
|
||||
if (user_options->show == true) return 0;
|
||||
if (user_options->stdout_flag == true) return 0;
|
||||
if (user_options->usage == true) return 0;
|
||||
if (user_options->version == true) return 0;
|
||||
|
||||
loopback_ctx->enabled = true;
|
||||
loopback_ctx->fp = NULL;
|
||||
loopback_ctx->filename = (char *) mymalloc (HCBUFSIZ_TINY);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void loopback_destroy (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
Reference in New Issue
Block a user