From 62dd9746c0fea1bd9ccaa3a3e4acf122cb09391d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B5=AB=E7=84=B6?= Date: Thu, 29 Aug 2024 18:45:56 +0800 Subject: [PATCH] Set default value --- common/password-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/password-hash.c b/common/password-hash.c index b0cd13e1..d249e11d 100644 --- a/common/password-hash.c +++ b/common/password-hash.c @@ -43,7 +43,7 @@ pbkdf2_sha256_derive_key (const char *data_in, int in_len, { int iteration = params->iteration; - unsigned char salt_bin[32]; + unsigned char salt_bin[32] = {0}; hex_to_rawdata (salt, salt_bin, 32); PKCS5_PBKDF2_HMAC (data_in, in_len,