mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-02 02:41:35 +00:00
remove redundant fclose
This commit is contained in:
parent
6ed7dde1d4
commit
f4a567a01d
@ -111,13 +111,13 @@ int combinator_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
const int rc2 = count_words (hashcat_ctx, fp2, dictfile2, &words2_cnt);
|
const int rc2 = count_words (hashcat_ctx, fp2, dictfile2, &words2_cnt);
|
||||||
|
|
||||||
|
fclose (fp1);
|
||||||
|
fclose (fp2);
|
||||||
|
|
||||||
if (rc2 == -1)
|
if (rc2 == -1)
|
||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "Integer overflow detected in keyspace of wordlist: %s", dictfile2);
|
event_log_error (hashcat_ctx, "Integer overflow detected in keyspace of wordlist: %s", dictfile2);
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,15 +125,9 @@ int combinator_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "%s: empty file.", dictfile2);
|
event_log_error (hashcat_ctx, "%s: empty file.", dictfile2);
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
combinator_ctx->dict1 = dictfile1;
|
combinator_ctx->dict1 = dictfile1;
|
||||||
combinator_ctx->dict2 = dictfile2;
|
combinator_ctx->dict2 = dictfile2;
|
||||||
|
|
||||||
@ -220,13 +214,13 @@ int combinator_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
const int rc2 = count_words (hashcat_ctx, fp2, dictfile2, &words2_cnt);
|
const int rc2 = count_words (hashcat_ctx, fp2, dictfile2, &words2_cnt);
|
||||||
|
|
||||||
|
fclose (fp1);
|
||||||
|
fclose (fp2);
|
||||||
|
|
||||||
if (rc2 == -1)
|
if (rc2 == -1)
|
||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "Integer overflow detected in keyspace of wordlist: %s", dictfile2);
|
event_log_error (hashcat_ctx, "Integer overflow detected in keyspace of wordlist: %s", dictfile2);
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,15 +228,9 @@ int combinator_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "%s: empty file.", dictfile2);
|
event_log_error (hashcat_ctx, "%s: empty file.", dictfile2);
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
combinator_ctx->dict1 = dictfile1;
|
combinator_ctx->dict1 = dictfile1;
|
||||||
combinator_ctx->dict2 = dictfile2;
|
combinator_ctx->dict2 = dictfile2;
|
||||||
|
|
||||||
@ -357,13 +345,13 @@ int combinator_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
const int rc2 = count_words (hashcat_ctx, fp2, dictfile2, &words2_cnt);
|
const int rc2 = count_words (hashcat_ctx, fp2, dictfile2, &words2_cnt);
|
||||||
|
|
||||||
|
fclose (fp1);
|
||||||
|
fclose (fp2);
|
||||||
|
|
||||||
if (rc2 == -1)
|
if (rc2 == -1)
|
||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "Integer overflow detected in keyspace of wordlist: %s", dictfile2);
|
event_log_error (hashcat_ctx, "Integer overflow detected in keyspace of wordlist: %s", dictfile2);
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -371,15 +359,9 @@ int combinator_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "%s: empty file.", dictfile2);
|
event_log_error (hashcat_ctx, "%s: empty file.", dictfile2);
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose (fp1);
|
|
||||||
fclose (fp2);
|
|
||||||
|
|
||||||
combinator_ctx->dict1 = dictfile1;
|
combinator_ctx->dict1 = dictfile1;
|
||||||
combinator_ctx->dict2 = dictfile2;
|
combinator_ctx->dict2 = dictfile2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user