From b85b28275f1f7d815df4442f2bc8701b6c5be51e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 20 Nov 2005 00:08:50 +0000 Subject: [PATCH] fix previous commit --- servers/slapd/back-ldap/chain.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.5