Author: nkinder
Update of /cvs/dirsec/winsync/passwordsync/passsync
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30744/passsync
Modified Files:
syncserv.cpp
Log Message:
186171 - Fixed memory leaks in passhook.dll
Index: syncserv.cpp
===================================================================
RCS file: /cvs/dirsec/winsync/passwordsync/passsync/syncserv.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- syncserv.cpp 18 Mar 2006 00:36:39 -0000 1.12
+++ syncserv.cpp 22 Mar 2006 18:51:16 -0000 1.13
@@ -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);
Show replies by date