]> git.sur5r.net Git - openldap/commitdiff
ITS#4040 fix uniqueMemberMatch when value is zero-length
authorHoward Chu <hyc@openldap.org>
Sun, 25 Sep 2005 06:11:35 +0000 (06:11 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Sep 2005 06:11:35 +0000 (06:11 +0000)
servers/slapd/schema_init.c

index 07fb1f0db647c3a16528b54156e8352f985e283d..b7cd3ba26387189e5dec75a69ab2475e363af08e 100644 (file)
@@ -1086,8 +1086,8 @@ uniqueMemberMatch(
                }
        }
 
+       valueDN = *value;
        if ( !BER_BVISEMPTY( value ) ) {
-               valueDN = *value;
 
                valueUID.bv_val = strrchr( valueDN.bv_val, '#' );
                if ( !BER_BVISNULL( &valueUID ) ) {