]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#4040 fix from HEAD
authorHoward Chu <hyc@openldap.org>
Wed, 28 Sep 2005 15:10:58 +0000 (15:10 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 28 Sep 2005 15:10:58 +0000 (15:10 +0000)
servers/slapd/schema_init.c

index 1e2a6772b126f3def7733b9376c5a9be3f67757b..e3c1ad4f5c42ac24dfa6fe043f97cad58bd95664 100644 (file)
@@ -1095,7 +1095,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;
 
        if ( !BER_BVISEMPTY( asserted ) ) {
@@ -1115,7 +1115,6 @@ uniqueMemberMatch(
        }
 
        if ( !BER_BVISEMPTY( value ) ) {
-               valueDN = *value;
 
                valueUID.bv_val = strrchr( valueDN.bv_val, '#' );
                if ( !BER_BVISNULL( &valueUID ) ) {