diff options
| author | David Sommerseth <dazo@users.sourceforge.net> | 2013-06-28 13:09:01 +0200 |
|---|---|---|
| committer | David Sommerseth <dazo@users.sourceforge.net> | 2013-06-28 13:14:46 +0200 |
| commit | eab410bf980a3cac7e75110e60986bbd8a989f20 (patch) | |
| tree | 32e1bdbf786c3ad8d2ff39cb0bc8c28b8945d1b7 | |
| parent | ac429e7bcdf9e0ea9c09e3da513cf4166c60de45 (diff) | |
| download | eurephia-eab410bf980a3cac7e75110e60986bbd8a989f20.tar.gz eurephia-eab410bf980a3cac7e75110e60986bbd8a989f20.tar.xz eurephia-eab410bf980a3cac7e75110e60986bbd8a989f20.zip | |
eurephia_init/benchmark: We don't need the result from the password hashing
This hash is only used to measure the hashing speed. We don't need to save
this hash at this point.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
| -rw-r--r-- | utils/benchmark.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/benchmark.c b/utils/benchmark.c index ec57146..c95da67 100644 --- a/utils/benchmark.c +++ b/utils/benchmark.c @@ -55,7 +55,6 @@ int gen_randsaltstr(eurephiaCTX *ctx, char *saltstr, int len); */ void benchmark_hashing(int rounds) { char *buffer = NULL; - char *pwdhash = NULL; static char randstr[34]; static int rand_set = 0; char pwdsalt[64], saltstr[32]; @@ -81,7 +80,7 @@ void benchmark_hashing(int rounds) { buffer = (char *) malloc_nullsafe(NULL, 1024); assert( buffer != NULL ); - pwdhash = sha512_crypt_r("benchmarkpassword", pwdsalt, ROUNDS_MAX, buffer, 1024); + sha512_crypt_r("benchmarkpassword", pwdsalt, ROUNDS_MAX, buffer, 1024); free_nullsafe(NULL, buffer); } |
