From f4c5bddd9cadcc38f30f0bf2251c6f7ce5ea2dab Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 9 Jun 2006 15:42:33 +0000 Subject: [PATCH] Ignore unknown attributes in slapi_send_ldap_search_entry() (mirrors code in slapi_pblock.c) --- servers/slapd/slapi/slapi_utils.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 554cfb2fa0..b897926e40 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -1382,11 +1382,7 @@ slapi_send_ldap_search_entry( an[i].an_name.bv_val = attrs[i]; an[i].an_name.bv_len = strlen( attrs[i] ); an[i].an_desc = NULL; - rs.sr_err = slap_bv2ad( &an[i].an_name, &an[i].an_desc, &text ); - if ( rs.sr_err != LDAP_SUCCESS) { - slapi_ch_free( (void **)&an ); - return -1; - } + (void) slap_bv2ad( &an[i].an_name, &an[i].an_desc, &text ); } an[i].an_name.bv_len = 0; an[i].an_name.bv_val = NULL; -- 2.39.5