From b620a0e23ceabbf973b98856edb7178d1b24aab6 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 2 Aug 2005 16:12:09 +0000 Subject: [PATCH] slapi/slapi_utils.c rev 1.172 removed the 'dup' parameter to slapi_int_ldapmods2modifications(), but a 'dup' test remains in the function body. Should always evaluate to TRUE. --- servers/slapd/slapi/slapi_utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 8d55601099..1f4396cd6a 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -2819,8 +2819,7 @@ Modifications *slapi_int_ldapmods2modifications ( LDAPMod **mods, void *memctx ) } } else { for ( i = 0; lmod->mod_values[i] != NULL; i++ ) { - mod->sml_values[i].bv_val = dup ? slapi_ch_strdup( lmod->mod_values[i] ) : - lmod->mod_values[i]; + mod->sml_values[i].bv_val = slapi_ch_strdup( lmod->mod_values[i] ); mod->sml_values[i].bv_len = strlen( lmod->mod_values[i] ); } } -- 2.39.5