From b7acb4812ac3dbf02c1cfb9d52ade8ef7b85869a Mon Sep 17 00:00:00 2001 From: Nathan Kinder Date: Wed, 22 Mar 2006 18:53:37 +0000 Subject: 186171 - Fixed memory leaks in passhook.dll --- ldap/synctools/passwordsync/passsync/syncserv.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ldap/synctools/passwordsync/passsync/syncserv.cpp') diff --git a/ldap/synctools/passwordsync/passsync/syncserv.cpp b/ldap/synctools/passwordsync/passsync/syncserv.cpp index 86de672e..63bb451e 100644 --- a/ldap/synctools/passwordsync/passsync/syncserv.cpp +++ b/ldap/synctools/passwordsync/passsync/syncserv.cpp @@ -375,6 +375,9 @@ int PassSyncService::SyncPasswords() ldap_memfree(dn); dn = NULL; + // zero out memory used for password + SecureZeroMemory(tempPassInfo->password, strlen(tempPassInfo->password)); + // free the username and password free(tempPassInfo->username); free(tempPassInfo->password); @@ -658,6 +661,9 @@ void PassSyncService::UpdateBackoff() tempPassInfo = currentPassInfo; currentPassInfo++; + // zero out memory used for password + SecureZeroMemory(tempPassInfo->password, strlen(tempPassInfo->password)); + // free the username and password free(tempPassInfo->username); free(tempPassInfo->password); -- cgit