about summary refs log tree commit diff
path: root/crypt/badsalttest.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypt/badsalttest.c')
-rw-r--r--crypt/badsalttest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypt/badsalttest.c b/crypt/badsalttest.c
index 6c5230c399..3e57cdd3b8 100644
--- a/crypt/badsalttest.c
+++ b/crypt/badsalttest.c
@@ -61,6 +61,9 @@ do_test (void)
       tests[n - 1][1] = &page[pagesize - 1];
     }
 
+  /* Mark cd as initialized before first call to crypt_r.  */
+  cd.initialized = 0;
+
   for (size_t i = 0; i < n; i++)
     {
       if (crypt (tests[i][0], tests[i][1]))