mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
complain if instantiated outside of a database definition
This commit is contained in:
parent
78af5454d2
commit
19dabd2fa8
@ -2493,6 +2493,13 @@ syncprov_db_init(
|
||||
slap_overinst *on = (slap_overinst *)be->bd_info;
|
||||
syncprov_info_t *si;
|
||||
|
||||
if ( SLAP_ISGLOBALOVERLAY( be ) ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"syncprov must be instantiated within a database.\n",
|
||||
0, 0, 0 );
|
||||
return 1;
|
||||
}
|
||||
|
||||
si = ch_calloc(1, sizeof(syncprov_info_t));
|
||||
on->on_bi.bi_private = si;
|
||||
ldap_pvt_thread_mutex_init( &si->si_csn_mutex );
|
||||
|
Loading…
Reference in New Issue
Block a user