mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Ignore unknown attributes in slapi_send_ldap_search_entry()
(mirrors code in slapi_pblock.c)
This commit is contained in:
parent
0f2601d0da
commit
f4c5bddd9c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user