From: Pierangelo Masarati Date: Thu, 3 Apr 2003 22:48:17 +0000 (+0000) Subject: of course there's a better way to skip a tag :) X-Git-Tag: AUTOCONF_2_57~94 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d218848b142b7fffbcfc6e869904b65e87dedda7;p=openldap of course there's a better way to skip a tag :) --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 2012e76ee4..81cb8e18a9 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -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;