From: Pierangelo Masarati Date: Sun, 18 Jul 2004 21:40:16 +0000 (+0000) Subject: fix empty uniqueMember dn portion (ITS#3247) X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=448e2dcad4d7c8d719358c8837d2ea653bda01bb;p=openldap fix empty uniqueMember dn portion (ITS#3247) --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 62b8b76ab4..09bdc46e1e 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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++;