mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-13 17:21:10 +00:00
additional --opencl-platform value check
This commit is contained in:
parent
7b7caf3842
commit
82ac8cbcfe
@ -12335,6 +12335,13 @@ int main (int argc, char **argv)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (CL_platform_sel < 1)
|
||||
{
|
||||
log_error ("ERROR: --opencl-platform < 1");
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
||||
if (CL_platform_sel > CL_platforms_cnt)
|
||||
{
|
||||
log_error ("ERROR: invalid OpenCL platforms selected");
|
||||
@ -12347,7 +12354,7 @@ int main (int argc, char **argv)
|
||||
{
|
||||
if (CL_platform_sel != 1)
|
||||
{
|
||||
log_error ("ERROR: OpenCL platform number %d not available", CL_platform_sel);
|
||||
log_error ("ERROR: OpenCL platform number %d is not available", CL_platform_sel);
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user