Skip to content
Snippets Groups Projects
Commit 681431e7 authored by Howard Chu's avatar Howard Chu
Browse files

Fix prev commit, test015 works again

parent 5deea2b6
No related branches found
No related tags found
No related merge requests found
......@@ -330,8 +330,6 @@ static int test_mra_filter(
return LDAP_INVALID_SYNTAX;
}
rc = LDAP_COMPARE_FALSE;
/* for each AVA of each RDN ... */
for ( iRDN = 0; dn[ iRDN ]; iRDN++ ) {
LDAPRDN rdn = dn[ iRDN ];
......@@ -385,18 +383,17 @@ static int test_mra_filter(
op->o_tmpfree( value.bv_val, memctx );
}
if( rc != LDAP_SUCCESS ) {
break;
if ( rc == LDAP_SUCCESS && ret == 0 ) {
rc = LDAP_COMPARE_TRUE;
}
if ( ret == 0 ) {
rc = LDAP_COMPARE_TRUE;
break;
if( rc != LDAP_SUCCESS ) {
ldap_dnfree_x( dn, memctx );
return rc;
}
}
}
ldap_dnfree_x( dn, memctx );
return rc;
}
return LDAP_COMPARE_FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment