Author: nhosoi
Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/syntaxes
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25637/ldap/servers/plugins/syntaxes
Modified Files:
string.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: string.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/syntaxes/string.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- string.c 7 Aug 2008 21:55:30 -0000 1.15
+++ string.c 15 Oct 2008 06:30:02 -0000 1.16
@@ -357,6 +357,11 @@
Slapi_Value **bvlp;
char *w, *c, *p;
+ if (NULL == bvals) {
+ *ivals = NULL;
+ return 0;
+ }
+
switch ( ftype ) {
case LDAP_FILTER_EQUALITY:
/* allocate a new array for the normalized values */