From: Kurt Zeilenga Date: Mon, 18 Jan 1999 20:34:17 +0000 (+0000) Subject: Don't clobber dn. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~750 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=802325542ba979998c707b57c311129bfddf4ae8;p=openldap Don't clobber dn. --- diff --git a/servers/slapd/back-ldbm/dn2id.c b/servers/slapd/back-ldbm/dn2id.c index 7cc4aec1e2..c3264715ca 100644 --- a/servers/slapd/back-ldbm/dn2id.c +++ b/servers/slapd/back-ldbm/dn2id.c @@ -133,6 +133,7 @@ dn2id_delete( return( -1 ); } + dn = ch_strdup( dn ); dn_normalize_case( dn ); key.dptr = dn; key.dsize = strlen( dn ) + 1;