From: Pierangelo Masarati Date: Thu, 13 May 2004 22:12:24 +0000 (+0000) Subject: caught nasty empty DN bug X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~380 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a10fe8e09847922682c847298800d4c51710c1a0;p=openldap caught nasty empty DN bug --- 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'