It's important to release a fixed version of v2.00 because of the issue #1 even if...
[hashcat.git] / src / oclHashcat.c
index 3aa4d46..93c75c8 100644 (file)
@@ -15,8 +15,8 @@ const char *PROGNAME          = "cudaHashcat";
 const char *PROGNAME          = "oclHashcat";
 #endif
 
-const char *VERSION_TXT       = "2.00";
-const uint  VERSION_BIN       = 200;
+const char *VERSION_TXT       = "2.01";
+const uint  VERSION_BIN       = 201;
 const uint  RESTORE_MIN       = 200;
 
 #define INCR_RULES            10000
@@ -2695,7 +2695,10 @@ static void run_copy (hc_device_param_t *device_param, const uint pws_cnt)
   // clear some leftovers from previous run (maskfiles, etc)
 
   #ifdef _CUDA
-  hc_cuMemsetD8 (device_param->c_bfs, 0, device_param->c_bytes);
+  if (device_param->c_bfs != 0) // should be only true in this specific case: if (data.attack_kern == ATTACK_KERN_BF)
+  {
+    hc_cuMemsetD8 (device_param->c_bfs, 0, device_param->c_bytes);
+  }
   #endif
 
   if (data.attack_kern == ATTACK_KERN_STRAIGHT)