From b5020aa16d0c6fa76e0cd3e10ce171615ee52065 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 9 Oct 2002 23:36:28 +0000 Subject: [PATCH] Don't mask error text variables --- servers/slapd/mods.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/servers/slapd/mods.c b/servers/slapd/mods.c index 528f6f1437..57ebd9ad8b 100644 --- a/servers/slapd/mods.c +++ b/servers/slapd/mods.c @@ -281,7 +281,6 @@ modify_add_values( } } else { - /* * The original code performs ( n ) normalizations * and ( n * ( n - 1 ) / 2 ) matches, which hide @@ -310,8 +309,6 @@ modify_add_values( */ int rc; - const char *text = NULL; - char textbuf[ SLAP_TEXT_BUFLEN ] = { '\0' }; if ( mod->sm_bvalues[ 1 ].bv_val == 0 ) { if ( a != NULL ) { @@ -319,7 +316,7 @@ modify_add_values( int i; rc = value_normalize( mod->sm_desc, SLAP_MR_EQUALITY, - &mod->sm_bvalues[ 0 ], &asserted, &text ); + &mod->sm_bvalues[ 0 ], &asserted, text ); if ( rc != LDAP_SUCCESS ) { return rc; @@ -330,7 +327,7 @@ modify_add_values( rc = value_match( &match, mod->sm_desc, mr, SLAP_MR_VALUE_SYNTAX_MATCH, - &a->a_vals[ i ], &asserted, &text ); + &a->a_vals[ i ], &asserted, text ); if( rc == LDAP_SUCCESS && match == 0 ) { free( asserted.bv_val ); @@ -342,7 +339,7 @@ modify_add_values( } else { rc = modify_check_duplicates( mod->sm_desc, mr, a ? a->a_vals : NULL, mod->sm_bvalues, - &text, textbuf, sizeof( textbuf ) ); + text, textbuf, textlen ); if ( rc != LDAP_SUCCESS ) { return rc; -- 2.39.5