]> git.sur5r.net Git - openldap/commitdiff
fix typos leading to memory issues
authorPierangelo Masarati <ando@openldap.org>
Thu, 23 Dec 2004 10:43:58 +0000 (10:43 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 23 Dec 2004 10:43:58 +0000 (10:43 +0000)
servers/slapd/back-meta/search.c

index 569052ce4f7294559ce89b7fd7c7ebbe44275e65..0939194cc4088cc5e3dc0aa77d2813efafb73cd8 100644 (file)
@@ -577,7 +577,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;
        }
@@ -690,7 +690,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;