mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 15:38:37 +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)
|
if (lpClearTextPassword != NULL)
|
||||||
{
|
{
|
||||||
/* Wipe and release the password buffer */
|
/* Wipe and release the password buffer */
|
||||||
ZeroMemory(lpClearTextPassword,
|
SecureZeroMemory(lpClearTextPassword,
|
||||||
(wcslen(lpClearTextPassword) + 1) * sizeof(WCHAR));
|
(wcslen(lpClearTextPassword) + 1) * sizeof(WCHAR));
|
||||||
HeapFree(GetProcessHeap(), 0, lpClearTextPassword);
|
HeapFree(GetProcessHeap(), 0, lpClearTextPassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2648,8 +2648,8 @@ done:
|
||||||
if (lpClearTextPassword != NULL)
|
if (lpClearTextPassword != NULL)
|
||||||
{
|
{
|
||||||
/* Wipe and release the password buffer */
|
/* Wipe and release the password buffer */
|
||||||
ZeroMemory(lpClearTextPassword,
|
SecureZeroMemory(lpClearTextPassword,
|
||||||
(wcslen(lpClearTextPassword) + 1) * sizeof(WCHAR));
|
(wcslen(lpClearTextPassword) + 1) * sizeof(WCHAR));
|
||||||
HeapFree(GetProcessHeap(), 0, lpClearTextPassword);
|
HeapFree(GetProcessHeap(), 0, lpClearTextPassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue