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

fixes #2465: --stdout should return status code 0

This commit is contained in:
philsmd 2020-07-02 17:32:54 +02:00
parent 5d04e97adc
commit 541ef659aa
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF
2 changed files with 12 additions and 1 deletions

View File

@ -12,6 +12,7 @@
##
- Fixed maximum password length in modules of hash-modes 600, 7800, 7801 and 9900
- Fixed non-zero status code when using --stdout
- Fixed uninitialized value in bitsliced DES kernel (BF mode only) leading to false negatives
##

View File

@ -1214,7 +1214,7 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
logfile_top_msg ("STOP");
// free memory
// set final status code
if (rc_final == 0)
{
@ -1227,6 +1227,16 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
if (status_ctx->devices_status == STATUS_ERROR) rc_final = -1;
}
// special case for --stdout
if (user_options->stdout_flag == true)
{
if (status_ctx->devices_status == STATUS_EXHAUSTED)
{
rc_final = 0;
}
}
// done
return rc_final;