Commit d9fec6d8 authored by Howard Chu's avatar Howard Chu
Browse files

More for ad_inlist

parent 445a4766
......@@ -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;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment