diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 963cc69c95..717502b403 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -874,7 +874,10 @@ uniqueMemberNormalize( assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage )); ber_dupbv( &out, val ); - if( out.bv_len != 0 ) { + if( BER_BVISEMPTY( &out ) ) { + *normalized = out; + + } else { struct berval uid = BER_BVNULL; if( out.bv_val[out.bv_len-1] == 'B'