2010-02-15 12:12:23 +01:00
|
|
|
Index: servers/slapd/back-bdb/dn2id.c
|
|
|
|
===================================================================
|
2010-02-16 10:14:35 +01:00
|
|
|
--- servers/slapd/back-bdb/dn2id.c.orig
|
|
|
|
+++ servers/slapd/back-bdb/dn2id.c
|
2010-02-15 12:12:23 +01:00
|
|
|
@@ -676,7 +676,7 @@ hdb_dn2id_delete(
|
|
|
|
d->nrdnlen[0] = (BEI(e)->bei_nrdn.bv_len >> 8) | 0x80;
|
|
|
|
dlen[0] = d->nrdnlen[0];
|
|
|
|
dlen[1] = d->nrdnlen[1];
|
|
|
|
- strcpy( d->nrdn, BEI(e)->bei_nrdn.bv_val );
|
2010-02-16 10:14:35 +01:00
|
|
|
+ memcpy ( d->nrdn, BEI(e)->bei_nrdn.bv_val, BEI(e)->bei_nrdn.bv_len + 1);
|
2010-02-15 12:12:23 +01:00
|
|
|
data.data = d;
|
|
|
|
|
|
|
|
rc = db->cursor( db, txn, &cursor, bdb->bi_db_opflags );
|