mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 15:41:24 -05:00
More for ad_inlist
This commit is contained in:
parent
445a4766ea
commit
d9fec6d815
1 changed files with 10 additions and 1 deletions
|
|
@ -286,7 +286,6 @@ int ad_inlist(
|
|||
{
|
||||
for( ; attrs; attrs=attrs->an_next ) {
|
||||
ObjectClass *oc;
|
||||
const char *text;
|
||||
int rc;
|
||||
|
||||
if ( attrs->an_desc ) {
|
||||
|
|
@ -325,6 +324,16 @@ int ad_inlist(
|
|||
if( rc ) return 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* short-circuit this search next time around */
|
||||
if (!slap_schema.si_at_undefined->sat_ad) {
|
||||
const char *text;
|
||||
slap_bv2undef_ad(&attrs->an_name,
|
||||
&attrs->an_desc, &text);
|
||||
} else {
|
||||
attrs->an_desc =
|
||||
slap_schema.si_at_undefined->sat_ad;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue