]> git.sur5r.net Git - openldap/commitdiff
fix empty uniqueMember dn portion (ITS#3247)
authorPierangelo Masarati <ando@openldap.org>
Sun, 18 Jul 2004 21:40:16 +0000 (21:40 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 18 Jul 2004 21:40:16 +0000 (21:40 +0000)
servers/slapd/schema_init.c

index 62b8b76ab4dcd3f6eb1feed053c0275655029fa4..09bdc46e1eb8d3e01d97698d05ee84574f8b8eb4 100644 (file)
@@ -1093,14 +1093,12 @@ uniqueMemberMatch(
 {
        int match;
        struct berval *asserted = (struct berval *) assertedValue;
-       struct berval assertedDN = BER_BVNULL;
+       struct berval assertedDN = *asserted;
        struct berval assertedUID = BER_BVNULL;
        struct berval valueDN = BER_BVNULL;
        struct berval valueUID = BER_BVNULL;
 
-       if( !BER_BVISEMPTY( asserted ) ) {
-               assertedDN = *asserted;
-
+       if ( !BER_BVISEMPTY( asserted ) ) {
                assertedUID.bv_val = strrchr( assertedDN.bv_val, '#' );
                if ( !BER_BVISNULL( &assertedUID ) ) {
                        assertedUID.bv_val++;