From 7b165a86a96b9124b74036bcf1d06ee94f4056e0 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sun, 18 Feb 2018 11:10:01 +0100 Subject: [PATCH] Fix LM selftest in -a 0 mode --- src/selftest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/selftest.c b/src/selftest.c index 3196e0553..3994db83d 100644 --- a/src/selftest.c +++ b/src/selftest.c @@ -55,6 +55,11 @@ static int selftest (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param pw.pw_len = (u32) pw_len; + if (hashconfig->opts_type & OPTS_TYPE_PT_UPPER) + { + uppercase (pw_ptr, pw.pw_len); + } + CL_err = hc_clEnqueueWriteBuffer (hashcat_ctx, device_param->command_queue, device_param->d_pws_buf, CL_TRUE, 0, 1 * sizeof (pw_t), &pw, 0, NULL, NULL); if (CL_err != CL_SUCCESS) return -1;