mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#10091 Do not allow dynlist being configured as global
This commit is contained in:
parent
61e4832110
commit
02975a3dc7
1 changed files with 5 additions and 0 deletions
|
|
@ -2740,6 +2740,11 @@ dynlist_db_init(
|
||||||
slap_overinst *on = (slap_overinst *)be->bd_info;
|
slap_overinst *on = (slap_overinst *)be->bd_info;
|
||||||
dynlist_gen_t *dlg;
|
dynlist_gen_t *dlg;
|
||||||
|
|
||||||
|
if ( SLAP_ISGLOBALOVERLAY( be ) ) {
|
||||||
|
Debug( LDAP_DEBUG_ANY, "dynlist cannot be used as global overlay.\n" );
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
dlg = (dynlist_gen_t *)ch_malloc( sizeof( *dlg ));
|
dlg = (dynlist_gen_t *)ch_malloc( sizeof( *dlg ));
|
||||||
on->on_bi.bi_private = dlg;
|
on->on_bi.bi_private = dlg;
|
||||||
dlg->dlg_dli = NULL;
|
dlg->dlg_dli = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue