]> git.sur5r.net Git - openldap/commitdiff
Apply string literal strdup fix to BDB2.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 23:06:53 +0000 (23:06 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 23:06:53 +0000 (23:06 +0000)
servers/slapd/back-bdb2/index.c

index fceb045a559f0575ee76e14226a57edf8fd8e60a..73a1e16bf85a0dc70ab61f6a31ac6df817c8a0e1 100644 (file)
@@ -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 );