mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix prev commit, test015 works again
This commit is contained in:
parent
5deea2b617
commit
681431e73a
@ -330,8 +330,6 @@ static int test_mra_filter(
|
|||||||
return LDAP_INVALID_SYNTAX;
|
return LDAP_INVALID_SYNTAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = LDAP_COMPARE_FALSE;
|
|
||||||
|
|
||||||
/* for each AVA of each RDN ... */
|
/* for each AVA of each RDN ... */
|
||||||
for ( iRDN = 0; dn[ iRDN ]; iRDN++ ) {
|
for ( iRDN = 0; dn[ iRDN ]; iRDN++ ) {
|
||||||
LDAPRDN rdn = dn[ iRDN ];
|
LDAPRDN rdn = dn[ iRDN ];
|
||||||
@ -385,18 +383,17 @@ static int test_mra_filter(
|
|||||||
op->o_tmpfree( value.bv_val, memctx );
|
op->o_tmpfree( value.bv_val, memctx );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( rc != LDAP_SUCCESS ) {
|
if ( rc == LDAP_SUCCESS && ret == 0 ) {
|
||||||
break;
|
rc = LDAP_COMPARE_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ret == 0 ) {
|
if( rc != LDAP_SUCCESS ) {
|
||||||
rc = LDAP_COMPARE_TRUE;
|
ldap_dnfree_x( dn, memctx );
|
||||||
break;
|
return rc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ldap_dnfree_x( dn, memctx );
|
ldap_dnfree_x( dn, memctx );
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return LDAP_COMPARE_FALSE;
|
return LDAP_COMPARE_FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user