From: Kurt Zeilenga Date: Thu, 27 May 1999 23:06:53 +0000 (+0000) Subject: Apply string literal strdup fix to BDB2. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~501 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a0d2b3c5a0a3d3ee7a3fbb2c28daf0d968814429;p=openldap Apply string literal strdup fix to BDB2. --- 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 );