https://git.reactos.org/?p=reactos.git;a=commitdiff;h=39281f0f7061f425c1320…
commit 39281f0f7061f425c13209b382830837d31dadfc
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Wed May 23 00:27:11 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Wed May 23 00:27:11 2018 +0200
[MSGINA] Clear the password on logoff
---
dll/win32/msgina/msgina.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dll/win32/msgina/msgina.c b/dll/win32/msgina/msgina.c
index e22413c613..08cd148fa5 100644
--- a/dll/win32/msgina/msgina.c
+++ b/dll/win32/msgina/msgina.c
@@ -1024,6 +1024,9 @@ WlxLogoff(
TRACE("WlxLogoff(%p)\n", pWlxContext);
+ /* Delete the password */
+ ZeroMemory(pgContext->Password, sizeof(pgContext->Password));
+
/* Close the user token */
CloseHandle(pgContext->UserToken);
pgContext->UserToken = NULL;