This commit is contained in:
Pierangelo Masarati 2006-03-19 23:26:12 +00:00
parent aeb20faf51
commit 9019ea74ee
2 changed files with 7 additions and 4 deletions

View File

@ -1177,11 +1177,13 @@ ad_define_option( const char *name, const char *fname, int lineno )
return 0; return 0;
} }
void ad_unparse_options( BerVarray *res ){ void
ad_unparse_options( BerVarray *res )
{
int i; int i;
for ( i=0; i < option_count; i++ ) { for ( i = 0; i < option_count; i++ ) {
ber_bvarray_add( res, ber_bvdup( &(options[i].name) )); value_add_one( res, &options[i].name );
} }
} }
/* Find the definition of the option name or prefix matching the arguments */ /* Find the definition of the option name or prefix matching the arguments */

View File

@ -198,6 +198,7 @@ monitor_entry_stub(
rdnNormalize( 0, NULL, NULL, rdn, &nrdn, NULL ); rdnNormalize( 0, NULL, NULL, rdn, &nrdn, NULL );
build_new_dn( &e->e_name, pdn, rdn, NULL ); build_new_dn( &e->e_name, pdn, rdn, NULL );
build_new_dn( &e->e_nname, pndn, &nrdn, NULL ); build_new_dn( &e->e_nname, pndn, &nrdn, NULL );
ber_memfree( nrdn.bv_val );
nat.bv_val = ptr + 1; nat.bv_val = ptr + 1;
nat.bv_len = rdn->bv_len - ( nat.bv_val - rdn->bv_val ); nat.bv_len = rdn->bv_len - ( nat.bv_val - rdn->bv_val );
attr_merge_normalize_one( e, slap_schema.si_ad_objectClass, attr_merge_normalize_one( e, slap_schema.si_ad_objectClass,