From bbc53b7fe417344a26031f54d281dfda0829509b Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 27 Oct 2017 11:36:57 +0200 Subject: [PATCH] Fix initialization of example password candidates for slow hashes in autotune --- src/autotune.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/autotune.c b/src/autotune.c index 95e0bf2b3..e8d1f712d 100644 --- a/src/autotune.c +++ b/src/autotune.c @@ -135,6 +135,10 @@ static int autotune (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param } else { + CL_rc = hc_clEnqueueCopyBuffer (hashcat_ctx, device_param->command_queue, device_param->d_pws_buf, device_param->d_pws_amp_buf, 0, 0, kernel_power_max * sizeof (pw_t), 0, NULL, NULL); + + if (CL_rc == -1) return -1; + CL_rc = run_kernel_amp (hashcat_ctx, device_param, kernel_power_max); if (CL_rc == -1) return -1;