]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schema_init.c
ITS#4040 move initialization
[openldap] / servers / slapd / schema_init.c
index b7cd3ba26387189e5dec75a69ab2475e363af08e..789c7f001aba99ad81d6520cd3b4bd0143a07cd2 100644 (file)
@@ -1066,7 +1066,7 @@ uniqueMemberMatch(
        struct berval *asserted = (struct berval *) assertedValue;
        struct berval assertedDN = *asserted;
        struct berval assertedUID = BER_BVNULL;
-       struct berval valueDN = BER_BVNULL;
+       struct berval valueDN = *value;
        struct berval valueUID = BER_BVNULL;
        int approx = ((flags & SLAP_MR_EQUALITY_APPROX) == SLAP_MR_EQUALITY_APPROX);
 
@@ -1086,7 +1086,6 @@ uniqueMemberMatch(
                }
        }
 
-       valueDN = *value;
        if ( !BER_BVISEMPTY( value ) ) {
 
                valueUID.bv_val = strrchr( valueDN.bv_val, '#' );