]> git.sur5r.net Git - openldap/commitdiff
ITS#4040 move initialization
authorHoward Chu <hyc@openldap.org>
Sun, 25 Sep 2005 06:12:41 +0000 (06:12 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Sep 2005 06:12:41 +0000 (06:12 +0000)
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, '#' );