mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
fix return code; fix test (please review)
This commit is contained in:
parent
62febe5dff
commit
0e83717e80
@ -1346,7 +1346,7 @@ backend_group(
|
||||
rc = 1;
|
||||
for (i=0; a->a_vals[i].bv_val; i++) {
|
||||
if ( ldap_url_parse( a->a_vals[i].bv_val, &ludp ) !=
|
||||
LDAP_SUCCESS )
|
||||
LDAP_URL_SUCCESS )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -1377,8 +1377,8 @@ backend_group(
|
||||
break;
|
||||
#ifdef LDAP_SCOPE_SUBORDINATE
|
||||
case LDAP_SCOPE_SUBORDINATE:
|
||||
if ( dn_match( &nbase, op_ndn ) &&
|
||||
!dnIsSuffix(op_ndn, &nbase ))
|
||||
if ( dn_match( &nbase, op_ndn ) ||
|
||||
!dnIsSuffix( op_ndn, &nbase ) )
|
||||
{
|
||||
goto loopit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user