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:
Jeffrey Altman 2012-06-18 21:49:18 -04:00
parent c8b1f007b5
commit 187af8d113

View File

@ -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;
}