From: Pierangelo Masarati Date: Sun, 20 Nov 2005 00:08:50 +0000 (+0000) Subject: fix previous commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~771 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b85b28275f1f7d815df4442f2bc8701b6c5be51e;p=openldap fix previous commit --- diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index a96c0166e5..367643a679 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -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