]> git.sur5r.net Git - openldap/commitdiff
caught nasty empty DN bug
authorPierangelo Masarati <ando@openldap.org>
Thu, 13 May 2004 22:12:24 +0000 (22:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 13 May 2004 22:12:24 +0000 (22:12 +0000)
servers/slapd/schema_init.c

index 963cc69c958c35b122089ebf7ebcde64ae36457d..717502b40385c62390737e70aacbe20169f0b06e 100644 (file)
@@ -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'