]> git.sur5r.net Git - openldap/commitdiff
Import fix from modification of string literal "dn" from devel.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 23:08:05 +0000 (23:08 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 23:08:05 +0000 (23:08 +0000)
servers/slapd/back-ldbm/index.c

index 77c748ed04e0bb5abeccd2f411d8026d55142934..4d6f1711b021315d6c5479abe8a8f4825de85c7f 100644 (file)
@@ -39,7 +39,11 @@ index_add_entry(
        bvals[1] = NULL;
 
        /* add the dn to the indexes */
-       index_add_values( be, "dn", bvals, e->e_id );
+       {
+               char *dn = ch_strdup("dn");
+               index_add_values( be, dn, bvals, e->e_id );
+               free( dn );
+       }
 
        free( bv.bv_val );