From bb4624c8b04256a938fc6187a311049fbba94b24 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 3 Apr 2003 22:40:41 +0000 Subject: [PATCH] eat undesired values --- servers/slapd/back-ldap/search.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; } -- 2.39.5