diff options
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); |
