From: Pierangelo Masarati Date: Thu, 3 Apr 2003 22:40:41 +0000 (+0000) Subject: eat undesired values X-Git-Tag: AUTOCONF_2_57~95 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb4624c8b04256a938fc6187a311049fbba94b24;p=openldap eat undesired values --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 3fafc9dcc8..2012e76ee4 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -468,6 +468,19 @@ ldap_build_entry( /* no subschemaSubentry */ if ( attr->a_desc == slap_schema.si_ad_subschemaSubentry ) { + BerVarray vals; + + /* + * We eat target's subschemaSubentry because + * a search for this value is likely not + * to resolve to the appropriate backend; + * later, the local subschemaSubentry is + * added. + * + * FIXME: is there a better means to eat + * undesired values? */ + (void)ber_scanf( &ber, "[W]", &vals ); + ch_free(attr); continue; }