mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix previous commit
This commit is contained in:
parent
567ab77275
commit
b85b28275f
@ -1275,22 +1275,23 @@ ldap_chain_db_init(
|
||||
slap_overinst *on = (slap_overinst *)be->bd_info;
|
||||
ldap_chain_t *lc = NULL;
|
||||
|
||||
int rc;
|
||||
|
||||
if ( lback == NULL ) {
|
||||
lback = backend_info( "ldap" );
|
||||
|
||||
if ( lback == NULL ) {
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
lc = ch_malloc( sizeof( ldap_chain_t ) );
|
||||
if ( lc == NULL ) {
|
||||
return 1;
|
||||
}
|
||||
memset( lc, 0, sizeof( ldap_chain_t ) );
|
||||
|
||||
on->on_bi.bi_private = (void *)lc;
|
||||
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user