From 6239b70081f0e43de8f8f3cd9ecb27989fda88c8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 25 Jan 2005 17:14:19 +0000 Subject: [PATCH] cleanup previous commit --- servers/slapd/back-ldap/chain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index 59f79f11aa..0a7935a401 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -139,7 +139,9 @@ ldap_chain_op( { slap_overinst *on = (slap_overinst *) op->o_bd->bd_info; struct ldapinfo li, *lip = (struct ldapinfo *)on->on_bi.bi_private; - int rc; + + /* NOTE: returned if ref is empty... */ + int rc = LDAP_OTHER; if ( lip->url != NULL ) { op->o_bd->be_private = on->on_bi.bi_private; @@ -692,7 +694,7 @@ chain_init( void ) int rc; rc = register_supported_control( LDAP_CONTROL_X_CHAINING_BEHAVIOR, - SLAP_CTRL_ACCESS, NULL, + SLAP_CTRL_ACCESS|SLAP_CTRL_HIDE, NULL, ldap_chain_parse_ctrl, &sc_chainingBehavior ); if ( rc != LDAP_SUCCESS ) { fprintf( stderr, "Failed to register chaining behavior control: %d\n", rc ); -- 2.39.5