mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 22:18:13 +00:00
[SERVICES] RChangeServiceConfigW / RCreateServiceW: Use SecureZeroMemory to wipe clear-text passwords after use.
This commit is contained in:
parent
b9aeb5bfbd
commit
04683639f0
1 changed files with 4 additions and 4 deletions
|
@ -2244,8 +2244,8 @@ done:
|
|||
if (lpClearTextPassword != NULL)
|
||||
{
|
||||
/* Wipe and release the password buffer */
|
||||
ZeroMemory(lpClearTextPassword,
|
||||
(wcslen(lpClearTextPassword) + 1) * sizeof(WCHAR));
|
||||
SecureZeroMemory(lpClearTextPassword,
|
||||
(wcslen(lpClearTextPassword) + 1) * sizeof(WCHAR));
|
||||
HeapFree(GetProcessHeap(), 0, lpClearTextPassword);
|
||||
}
|
||||
|
||||
|
@ -2648,8 +2648,8 @@ done:
|
|||
if (lpClearTextPassword != NULL)
|
||||
{
|
||||
/* Wipe and release the password buffer */
|
||||
ZeroMemory(lpClearTextPassword,
|
||||
(wcslen(lpClearTextPassword) + 1) * sizeof(WCHAR));
|
||||
SecureZeroMemory(lpClearTextPassword,
|
||||
(wcslen(lpClearTextPassword) + 1) * sizeof(WCHAR));
|
||||
HeapFree(GetProcessHeap(), 0, lpClearTextPassword);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue