From: Howard Chu Date: Fri, 18 Apr 2003 01:33:14 +0000 (+0000) Subject: ITS#2447, empty uniqueMember X-Git-Tag: OPENLDAP_REL_ENG_2_1_18~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2da1a53e91c014004eeb517ef2946258a147300d;p=thirdparty%2Fopenldap.git ITS#2447, empty uniqueMember --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 53cdb6a6f2..5e91241cc2 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -364,7 +364,9 @@ nameUIDNormalize( int rc; ber_dupbv( &out, val ); - if( out.bv_len != 0 ) { + if( out.bv_len == 0 ) { + *normalized = out; + } else { struct berval uid = { 0, NULL }; if( out.bv_val[out.bv_len-1] == 'B'