From 5be3840d9ad0c49a38b8efd4d9cc3ae53e08fd29 Mon Sep 17 00:00:00 2001
From: Jens Steube <jens.steube@gmail.com>
Date: Fri, 9 Jun 2017 10:20:05 +0200
Subject: [PATCH] Add some hint for the user to a scrypt error message

---
 src/opencl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/opencl.c b/src/opencl.c
index 35f4d1c21..ca1485ed2 100644
--- a/src/opencl.c
+++ b/src/opencl.c
@@ -3685,7 +3685,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
       hashconfig->tmp_size = scrypt_tmp_size;
 
       u32 tmto_start = 0;
-      u32 tmto_stop  = 5;
+      u32 tmto_stop  = 6;
 
       if (user_options->scrypt_tmto)
       {
@@ -3800,7 +3800,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
 
       if (not_enough_memory == true)
       {
-        event_log_error (hashcat_ctx, "Cannot allocate enough device memory.");
+        event_log_error (hashcat_ctx, "Cannot allocate enough device memory. Perhaps retry with -n 1.");
 
         return -1;
       }