@ -735,21 +735,28 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
{
{
const int binary_count = module_ctx - > module_hash_binary_count ( hashes ) ;
const int binary_count = module_ctx - > module_hash_binary_count ( hashes ) ;
if ( binary_count = = 0 )
if ( binary_count > 0 )
{
hashes_avail = binary_count ;
}
else if ( binary_count = = 0 )
{
{
event_log_error ( hashcat_ctx , " No hashes loaded. " ) ;
event_log_error ( hashcat_ctx , " No hashes loaded. " ) ;
return - 1 ;
return - 1 ;
}
}
else if ( binary_count = = PARSER_HAVE_ERRNO )
if ( binary_count = = - 1 )
{
{
event_log_error ( hashcat_ctx , " %s: %s " , hashes - > hashfile , strerror ( errno ) ) ;
event_log_error ( hashcat_ctx , " %s: %s " , hashes - > hashfile , strerror ( errno ) ) ;
return - 1 ;
return - 1 ;
}
}
else
{
event_log_error ( hashcat_ctx , " %s: %s " , hashes - > hashfile , strerror ( binary_count ) ) ;
hashes_avail = binary_count ;
return - 1 ;
}
}
}
else
else
{
{
@ -1289,6 +1296,10 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
hashes_cnt = hashes_parsed ;
hashes_cnt = hashes_parsed ;
}
}
else if ( hashes_parsed = = 0 )
else if ( hashes_parsed = = 0 )
{
event_log_warning ( hashcat_ctx , " No hashes loaded. " ) ;
}
else if ( hashes_parsed = = PARSER_HAVE_ERRNO )
{
{
event_log_warning ( hashcat_ctx , " Hashfile '%s': %s " , hashes - > hashfile , strerror ( errno ) ) ;
event_log_warning ( hashcat_ctx , " Hashfile '%s': %s " , hashes - > hashfile , strerror ( errno ) ) ;
}
}