version 1.39, 2005/11/19 22:22:50
|
version 1.40, 2005/11/19 23:08:50
|
Line 1
|
Line 1
|
/* chain.c - chain LDAP operations */ |
/* chain.c - chain LDAP operations */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/chain.c,v 1.38 2005/11/19 17:44:54 ando Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/chain.c,v 1.39 2005/11/19 22:22:50 ando Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 2003-2005 The OpenLDAP Foundation. |
* Copyright 2003-2005 The OpenLDAP Foundation. |
Line 1275 ldap_chain_db_init(
|
Line 1275 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 |