mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
More for ad_inlist
This commit is contained in:
parent
445a4766ea
commit
d9fec6d815
@ -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 New Issue
Block a user