From: Luke Howard Date: Fri, 9 Jun 2006 15:42:33 +0000 (+0000) Subject: Ignore unknown attributes in slapi_send_ldap_search_entry() X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~166 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f4c5bddd9cadcc38f30f0bf2251c6f7ce5ea2dab;p=openldap Ignore unknown attributes in slapi_send_ldap_search_entry() (mirrors code in slapi_pblock.c) --- 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;