From a0d2b3c5a0a3d3ee7a3fbb2c28daf0d968814429 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 27 May 1999 23:06:53 +0000 Subject: [PATCH] Apply string literal strdup fix to BDB2. --- servers/slapd/back-bdb2/index.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb2/index.c b/servers/slapd/back-bdb2/index.c index fceb045a55..73a1e16bf8 100644 --- a/servers/slapd/back-bdb2/index.c +++ b/servers/slapd/back-bdb2/index.c @@ -38,7 +38,11 @@ bdb2i_index_add_entry( bvals[1] = NULL; /* add the dn to the indexes */ - bdb2i_index_add_values( be, "dn", bvals, e->e_id ); + { + char *dn = ch_strdup( "dn" ); + bdb2i_index_add_values( be, dn, bvals, e->e_id ); + free( dn ); + } free( bv.bv_val ); -- 2.39.5