]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/operational.c
Partial revert from 1.246, not sure what's the point
[openldap] / servers / slapd / operational.c
index fd12d0aff6e38f89c691edfe763b8b015e05aedb..f55cfd98f8491b2df94ff7795c3094aae9c30c5d 100644 (file)
@@ -31,6 +31,7 @@ slap_operational_subschemaSubentry( Backend *be )
 
        a = attr_alloc( slap_schema.si_ad_subschemaSubentry );
 
+       a->a_numvals = 1;
        a->a_vals = ch_malloc( 2 * sizeof( struct berval ) );
        ber_dupbv( a->a_vals, &frontendDB->be_schemadn );
        a->a_vals[1].bv_len = 0;
@@ -55,6 +56,7 @@ slap_operational_entryDN( Entry *e )
 
        a = attr_alloc( slap_schema.si_ad_entryDN );
 
+       a->a_numvals = 1;
        a->a_vals = ch_malloc( 2 * sizeof( struct berval ) );
        ber_dupbv( &a->a_vals[ 0 ], &e->e_name );
        BER_BVZERO( &a->a_vals[ 1 ] );
@@ -75,6 +77,7 @@ slap_operational_hasSubordinate( int hs )
        val = hs ? slap_true_bv : slap_false_bv;
 
        a = attr_alloc( slap_schema.si_ad_hasSubordinates );
+       a->a_numvals = 1;
        a->a_vals = ch_malloc( 2 * sizeof( struct berval ) );
 
        ber_dupbv( &a->a_vals[0], &val );