From a10fe8e09847922682c847298800d4c51710c1a0 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 13 May 2004 22:12:24 +0000 Subject: [PATCH] caught nasty empty DN bug --- servers/slapd/schema_init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' -- 2.39.5