From: Pierangelo Masarati Date: Thu, 11 Nov 2004 00:32:47 +0000 (+0000) Subject: fix return code; fix test (please review) X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~345 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0e83717e8087308a708ab018608e72591f4a749b;p=openldap fix return code; fix test (please review) --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index 834b99dae1..0a59626bea 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -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; }