Skip to content
Snippets Groups Projects
Commit 81192901 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

anyone knows a safer way to skip a tag?

parent d218848b
Branches
Tags
No related merge requests found
......@@ -468,7 +468,7 @@ ldap_build_entry(
/* no subschemaSubentry */
if ( attr->a_desc == slap_schema.si_ad_subschemaSubentry ) {
ber_len_t len;
BerVarray vals;
/*
* We eat target's subschemaSubentry because
......@@ -477,7 +477,11 @@ ldap_build_entry(
* later, the local subschemaSubentry is
* added.
*/
ber_skip_tag( &ber, &len );
( void )ber_scanf( &ber, "[W]", &vals );
for ( bv = vals; bv->bv_val; bv++ ) {
LBER_FREE( bv->bv_val );
}
LBER_FREE( vals );
ch_free(attr);
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment