]> git.sur5r.net Git - openldap/commitdiff
fix return code; fix test (please review)
authorPierangelo Masarati <ando@openldap.org>
Thu, 11 Nov 2004 00:32:47 +0000 (00:32 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 11 Nov 2004 00:32:47 +0000 (00:32 +0000)
servers/slapd/backend.c

index 834b99dae1d50cfab602ca9e9d6eb2ad39d52f38..0a59626beaec091ea5205a34b49ea7b6d6eba32d 100644 (file)
@@ -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;
                                                        }