From dc2c68067b8f08856dc0bbeff53ad22dabc966bb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 28 Jul 2017 18:08:10 +0200 Subject: [PATCH] C++ compat --- src/libsodium/crypto_pwhash/argon2/argon2-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/crypto_pwhash/argon2/argon2-core.c b/src/libsodium/crypto_pwhash/argon2/argon2-core.c index af7cf482..789e3ba6 100644 --- a/src/libsodium/crypto_pwhash/argon2/argon2-core.c +++ b/src/libsodium/crypto_pwhash/argon2/argon2-core.c @@ -578,7 +578,7 @@ initialize(argon2_instance_t *instance, argon2_context *context) /* 1. Memory allocation */ - if ((instance->pseudo_rands = + if ((instance->pseudo_rands = (uint64_t *) malloc(sizeof(uint64_t) * instance->segment_length)) == NULL) { return ARGON2_MEMORY_ALLOCATION_ERROR; }