summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2013-06-28 13:09:01 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2013-06-28 13:13:46 +0200
commit0b6ecfd0c143d7d02d1fca5cd5774170dd321872 (patch)
tree9db8e1965fb21efa0a068bbf5ab3cc84aa0f3671
parentc12b7eff21237e8bb0a2daf8507d5ccbfe6d7d9b (diff)
downloadeurephia-0b6ecfd0c143d7d02d1fca5cd5774170dd321872.tar.gz
eurephia-0b6ecfd0c143d7d02d1fca5cd5774170dd321872.tar.xz
eurephia-0b6ecfd0c143d7d02d1fca5cd5774170dd321872.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> (cherry picked from commit 2ed21f9c05ed25d814034ad3ebb4cb6009543481)
-rw-r--r--utils/benchmark.c3
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);
}