mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
fix empty uniqueMember dn portion (ITS#3247)
This commit is contained in:
parent
47415023b4
commit
448e2dcad4
1 changed files with 2 additions and 4 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue