Browse Source

fix use of uninitialized value

release0.1.5
Georg Hopp 12 years ago
parent
commit
3455ad7522
  1. 2
      src/auth/storage/hash_pw.c

2
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;

Loading…
Cancel
Save