From: Howard Chu Date: Wed, 28 Sep 2005 15:10:58 +0000 (+0000) Subject: ITS#4040 fix from HEAD X-Git-Tag: OPENLDAP_REL_ENG_2_2_29~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7248fed09ab82e2c4c5202bc5181f0849a6fda4;p=thirdparty%2Fopenldap.git ITS#4040 fix from HEAD --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 1e2a6772b1..e3c1ad4f5c 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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 ) ) {