From: Pierangelo Masarati Date: Thu, 23 Dec 2004 10:43:58 +0000 (+0000) Subject: fix typos leading to memory issues X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7198e9e4b9399b830c562bd0765aba8f61feb9ed;p=openldap fix typos leading to memory issues --- diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index 569052ce4f..0939194cc4 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -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;