diff options
Diffstat (limited to 'crypt')
-rw-r--r-- | crypt/badsalttest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypt/badsalttest.c b/crypt/badsalttest.c index 6c5230c..3e57cdd 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])) |