diff options
| author | Nathan Kinder <nkinder@redhat.com> | 2006-03-22 18:53:37 +0000 |
|---|---|---|
| committer | Nathan Kinder <nkinder@redhat.com> | 2006-03-22 18:53:37 +0000 |
| commit | b7acb4812ac3dbf02c1cfb9d52ade8ef7b85869a (patch) | |
| tree | 7e30dcb37fb4e863408568a196a5a30de5d90ee3 /ldap/synctools/passwordsync/passsync/syncserv.cpp | |
| parent | 9996baa53607cee533b07af245e8f9e8ffea76ef (diff) | |
186171 - Fixed memory leaks in passhook.dll
Diffstat (limited to 'ldap/synctools/passwordsync/passsync/syncserv.cpp')
| -rw-r--r-- | ldap/synctools/passwordsync/passsync/syncserv.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
