Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/rever
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25637/ldap/servers/plugins/rever
Modified Files:
des.c
Log Message:
Resolves: #466702
Summary: Memory usage research: checking in the experimental code
See also:
http://directory.fedoraproject.org/wiki/Memory_Usage_Research
Index: des.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/rever/des.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- des.c 24 Sep 2007 22:54:54 -0000 1.9
+++ des.c 15 Oct 2008 06:29:59 -0000 1.10
@@ -431,7 +431,8 @@
}
/* store->crypt will hold the crypted password - it must be >= clear length */
- store->crypt = (unsigned char *)slapi_ch_calloc(sizeof(unsigned char),
+ /* store->crypt is freed in NSS; let's not use slapi_ch_calloc */
+ store->crypt = (unsigned char *)calloc(sizeof(unsigned char),
store->length+1);
if (!store->crypt)
{