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

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Thu Aug 25 22:38:42 UTC 2005


Author: rmeggins

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

Modified Files:
      Tag: Directory71RtmBranch
	views.c 
Log Message:
Bug(s) fixed: 165640
Bug Description: Directory Server crashes when deleting a view
Branch: Directory71RtmBranch
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.5.2.1
diff -u -r1.5 -r1.5.2.1
--- views.c	19 Apr 2005 22:07:36 -0000	1.5
+++ views.c	25 Aug 2005 22:38:40 -0000	1.5.2.1
@@ -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);
 
 			views_cache_discover_parent(theView);
 			if(theView->pParent)




More information about the Fedora-directory-commits mailing list