]> git.sur5r.net Git - openldap/commitdiff
of course there's a better way to skip a tag :)
authorPierangelo Masarati <ando@openldap.org>
Thu, 3 Apr 2003 22:48:17 +0000 (22:48 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 3 Apr 2003 22:48:17 +0000 (22:48 +0000)
servers/slapd/back-ldap/search.c

index 2012e76ee4638a5d9ba6c05ae7abdf34d61f9c19..81cb8e18a9425d538666e255e022367e515f884b 100644 (file)
@@ -468,7 +468,7 @@ ldap_build_entry(
 
                /* no subschemaSubentry */
                if ( attr->a_desc == slap_schema.si_ad_subschemaSubentry ) {
-                       BerVarray vals;
+                       ber_len_t       len;
 
                        /* 
                         * We eat target's subschemaSubentry because
@@ -476,10 +476,8 @@ ldap_build_entry(
                         * 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 );
+                        */
+                       ber_skip_tag( &ber, &len );
 
                        ch_free(attr);
                        continue;