[Commits] [SCM] claws branch, master, updated. 3.13.2-111-g5b146e9
ticho at claws-mail.org
ticho at claws-mail.org
Fri Apr 8 14:51:27 CEST 2016
The branch, master has been updated
via 5b146e9eaa01a28c51431471bce6ea13a031e8ae (commit)
from ffd418aaa7b4bdf401193a96194346ff7e403b9e (commit)
Summary of changes:
src/password.c | 6 ++++++
1 file changed, 6 insertions(+)
- Log -----------------------------------------------------------------
commit 5b146e9eaa01a28c51431471bce6ea13a031e8ae
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Fri Apr 8 14:50:45 2016 +0200
Close PRNG source after reading our PBKDF2 salt from it.
diff --git a/src/password.c b/src/password.c
index ac8fe50..461a5b7 100644
--- a/src/password.c
+++ b/src/password.c
@@ -99,6 +99,12 @@ static void _generate_salt()
return;
}
+#if defined G_OS_UNIX
+ close(rnd);
+#elif defined G_OS_WIN32
+ CryptReleaseContext(rnd, 0);
+#endif
+
prefs_common_get_prefs()->master_passphrase_salt =
g_base64_encode(salt, KD_SALT_LENGTH);
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list