[Fedora-directory-commits] ldapserver/ldap/servers/slapd util.c, 1.9, 1.10

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Thu Feb 16 17:40:00 UTC 2006


Author: rmeggins

Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7463/ldapserver/ldap/servers/slapd

Modified Files:
	util.c 
Log Message:
Bug(s) fixed: 181776
Bug Description: 64bit issues with normalize_path(), make_dn(), and 
add_aci_v()
Reviewed by: Nathan and Noriko (Thanks!)
Fix Description: 1) use sizeof(char *) as the elemsize to pass to 
slapi_ch_calloc(). 2) create a variable const char *NULLSTR = 0 to pass 
as the last argument to the varargs functions.
Platforms tested: RHEL4 64
Flag Day: no
Doc impact: no



Index: util.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/util.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- util.c	12 Jan 2006 00:28:57 -0000	1.9
+++ util.c	16 Feb 2006 17:39:53 -0000	1.10
@@ -408,8 +408,8 @@
     char *dname = slapi_ch_strdup(path);
     char *dnamep = dname;
     char *bnamep = NULL;
-    char **dirs = (char **)slapi_ch_calloc(strlen(path), 1);
-    char **rdirs = (char **)slapi_ch_calloc(strlen(path), 1);
+    char **dirs = (char **)slapi_ch_calloc(strlen(path), sizeof(char *));
+    char **rdirs = (char **)slapi_ch_calloc(strlen(path), sizeof(char *));
     char **dp = dirs;
     char **rdp;
     do {




More information about the Fedora-directory-commits mailing list