mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
Windows: NPLogonNotify secure erase password
The user's password is copied during the NPLogonNotify processing, be sure to erase it from the stack before the function completes. Change-Id: Ib600f5656f7b32628e7105336ff0ffef8f15272f Reviewed-on: http://gerrit.openafs.org/7632 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com> Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
parent
c8b1f007b5
commit
187af8d113
@ -1205,6 +1205,8 @@ NPLogonNotify(
|
||||
if (opt.smbName) free(opt.smbName);
|
||||
if (opt.realm) free(opt.realm);
|
||||
|
||||
SecureZeroMemory(password, sizeof(password));
|
||||
|
||||
DebugEvent("AFS AfsLogon - Exit","Return Code[%x]",code);
|
||||
return code;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user