From 3455ad7522364990eb662789b0793ac2dc7e61ba Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Sun, 29 Sep 2013 14:13:46 +0100 Subject: [PATCH] fix use of uninitialized value --- src/auth/storage/hash_pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/storage/hash_pw.c b/src/auth/storage/hash_pw.c index 9614630..8fad687 100644 --- a/src/auth/storage/hash_pw.c +++ b/src/auth/storage/hash_pw.c @@ -78,7 +78,7 @@ hash_pw( unsigned char ** salt) { if (NULL == *salt) { - *salt = memMalloc(SALT_SIZE * sizeof(unsigned char)); + *salt = memCalloc(SALT_SIZE, sizeof(unsigned char)); if (0 > RAND_pseudo_bytes(*salt, SALT_SIZE)) { MEM_FREE(*salt); return FALSE;