projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b7caf3
)
additional --opencl-platform value check
author
philsmd
<philsmd@hashcat.net>
Thu, 7 Jan 2016 16:15:28 +0000
(17:15 +0100)
committer
philsmd
<philsmd@hashcat.net>
Thu, 7 Jan 2016 16:15:28 +0000
(17:15 +0100)
src/oclHashcat.c
patch
|
blob
|
history
diff --git
a/src/oclHashcat.c
b/src/oclHashcat.c
index
0f55a56
..
04e58fc
100644
(file)
--- a/
src/oclHashcat.c
+++ b/
src/oclHashcat.c
@@
-12335,6
+12335,13
@@
int main (int argc, char **argv)
}
else
{
}
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");
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)
{
{
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);
}
return (-1);
}