From 0e83717e8087308a708ab018608e72591f4a749b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 11 Nov 2004 00:32:47 +0000 Subject: [PATCH] fix return code; fix test (please review) --- servers/slapd/backend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5