mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
fix previous commit
This commit is contained in:
parent
567ab77275
commit
b85b28275f
1 changed files with 5 additions and 4 deletions
|
|
@ -1275,22 +1275,23 @@ ldap_chain_db_init(
|
||||||
slap_overinst *on = (slap_overinst *)be->bd_info;
|
slap_overinst *on = (slap_overinst *)be->bd_info;
|
||||||
ldap_chain_t *lc = NULL;
|
ldap_chain_t *lc = NULL;
|
||||||
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
if ( lback == NULL ) {
|
if ( lback == NULL ) {
|
||||||
lback = backend_info( "ldap" );
|
lback = backend_info( "ldap" );
|
||||||
|
|
||||||
if ( lback == NULL ) {
|
if ( lback == NULL ) {
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lc = ch_malloc( sizeof( ldap_chain_t ) );
|
lc = ch_malloc( sizeof( ldap_chain_t ) );
|
||||||
|
if ( lc == NULL ) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
memset( lc, 0, sizeof( ldap_chain_t ) );
|
memset( lc, 0, sizeof( ldap_chain_t ) );
|
||||||
|
|
||||||
on->on_bi.bi_private = (void *)lc;
|
on->on_bi.bi_private = (void *)lc;
|
||||||
|
|
||||||
return rc;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue