[Fedora-directory-commits] ldapserver/ldap/servers/plugins/views views.c, 1.5, 1.6

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Thu Aug 11 16:45:07 UTC 2005

Author: rmeggins

Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/views
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6565/ldapserver/ldap/servers/plugins/views

Modified Files:
Log Message:
Bug(s) fixed: 165640
Bug Description: Directory Server crashes when deleting a view
Reviewed by: Nathan (Thanks!)
Fix Description: Needed to pass in the _address_ of theCache.pCacheViews to views_cache_add_ll_entry.  Yet another lesson in using the compiler to catch type errors rather than casting to void*.
Platforms tested: RHEL3
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none

Index: views.c
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/views/views.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- views.c	19 Apr 2005 22:07:36 -0000	1.5
+++ views.c	11 Aug 2005 16:45:04 -0000	1.6
@@ -1529,7 +1529,7 @@
 				theView->parentid = 0;
 			/* add view to the cache */
-			views_cache_add_ll_entry((void**)theCache.pCacheViews, (void *)theView);
+			views_cache_add_ll_entry((void**)&theCache.pCacheViews, (void *)theView);

More information about the Fedora-directory-commits mailing list