diff options
author | Rich Megginson <rmeggins@redhat.com> | 2005-08-25 22:38:40 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2005-08-25 22:38:40 +0000 |
commit | 7e856eff9d6985ab61e37ec9293476e4cd26a799 (patch) | |
tree | 9d633812c0b8f279fe284cc46fb665cd218841f7 | |
parent | 2b9d9f700b4f26ed273f90c1594954fbf60038a3 (diff) | |
download | ds-7e856eff9d6985ab61e37ec9293476e4cd26a799.tar.gz ds-7e856eff9d6985ab61e37ec9293476e4cd26a799.tar.xz ds-7e856eff9d6985ab61e37ec9293476e4cd26a799.zip |
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
-rw-r--r-- | ldap/servers/plugins/views/views.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/plugins/views/views.c b/ldap/servers/plugins/views/views.c index 0377dea2..d5c7e69e 100644 --- a/ldap/servers/plugins/views/views.c +++ b/ldap/servers/plugins/views/views.c @@ -1529,7 +1529,7 @@ static void views_update_views_cache( Slapi_Entry *e, char *dn, int modtype, Sla 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) |