]> git.sur5r.net Git - openldap/commitdiff
ITS#2447, empty uniqueMember
authorHoward Chu <hyc@openldap.org>
Fri, 18 Apr 2003 01:33:14 +0000 (01:33 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 18 Apr 2003 01:33:14 +0000 (01:33 +0000)
servers/slapd/schema_init.c

index 53cdb6a6f2bc9a20c8221cefdfcc662aa12d3b9c..5e91241cc2c22906c927b3cf4a1c9108101f956f 100644 (file)
@@ -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'