]> git.sur5r.net Git - openldap/commitdiff
import fixes from HEAD
authorPierangelo Masarati <ando@openldap.org>
Thu, 23 Dec 2004 10:44:59 +0000 (10:44 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 23 Dec 2004 10:44:59 +0000 (10:44 +0000)
servers/slapd/back-meta/search.c

index 1a2bf3d85d4e36ffd40ad9ec57778f8499cd4f57..66edcf84349bc29b4277a3a450397a0d69e2eda2 100644 (file)
@@ -185,6 +185,8 @@ meta_back_search( Operation *op, SlapReply *rs )
                                goto new_candidate;
                        }
 
+               } else {
+                       is_scope++;
                }
 
                /*
@@ -586,7 +588,7 @@ meta_send_entry(
         * FIXME: should we log anything, or delegate to dnNormalize?
         */
        if ( dnNormalize( 0, NULL, NULL, &ent.e_name, &ent.e_nname,
-               &op->o_tmpmemctx ) != LDAP_SUCCESS )
+               op->o_tmpmemctx ) != LDAP_SUCCESS )
        {
                return LDAP_INVALID_DN_SYNTAX;
        }
@@ -704,7 +706,7 @@ meta_send_entry(
                                        attr->a_desc->ad_type->sat_syntax,
                                        attr->a_desc->ad_type->sat_equality,
                                        &attr->a_vals[i], &attr->a_nvals[i],
-                                       op->o_tmpmemctx );
+                                       NULL );
                        }
                        attr->a_nvals[i].bv_val = NULL;
                        attr->a_nvals[i].bv_len = 0;