]> git.sur5r.net Git - openldap/commitdiff
eat undesired values
authorPierangelo Masarati <ando@openldap.org>
Thu, 3 Apr 2003 22:40:41 +0000 (22:40 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 3 Apr 2003 22:40:41 +0000 (22:40 +0000)
servers/slapd/back-ldap/search.c

index 3fafc9dcc849bf620c175ff157d1a3461b4d5d1a..2012e76ee4638a5d9ba6c05ae7abdf34d61f9c19 100644 (file)
@@ -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;
                }