[Fedora-directory-commits] ldapserver/ldap/synctools/passwordsync/passsync syncserv.cpp, 1.7.2.5, 1.7.2.6
Nathan Kinder (nkinder)
fedora-directory-commits at redhat.com
Wed Mar 22 18:53:45 UTC 2006
Author: nkinder
Update of /cvs/dirsec/ldapserver/ldap/synctools/passwordsync/passsync
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30812/passsync
Modified Files:
Tag: Directory71RtmBranch
syncserv.cpp
Log Message:
186171 - Fixed memory leaks in passhook.dll
Index: syncserv.cpp
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/synctools/passwordsync/passsync/syncserv.cpp,v
retrieving revision 1.7.2.5
retrieving revision 1.7.2.6
diff -u -r1.7.2.5 -r1.7.2.6
--- syncserv.cpp 18 Mar 2006 00:32:01 -0000 1.7.2.5
+++ syncserv.cpp 22 Mar 2006 18:53:37 -0000 1.7.2.6
@@ -375,6 +375,9 @@
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 @@
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);
More information about the Fedora-directory-commits
mailing list