1
0
forked from pool/openldap2
openldap2/openldap-2.4.21.dif
Ralf Haferkamp 57eba7825e Accepting request 32500 from home:rguenther:branches:network:ldap
Copy from home:rguenther:branches:network:ldap/openldap2 via accept of submit request 32500 revision 2.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/32500
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=29
2010-02-15 11:12:23 +00:00

14 lines
610 B
Plaintext

Index: servers/slapd/back-bdb/dn2id.c
===================================================================
--- servers/slapd/back-bdb/dn2id.c.orig 2009-06-19 23:55:57.000000000 +0200
+++ servers/slapd/back-bdb/dn2id.c 2010-02-13 22:39:18.000000000 +0100
@@ -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 );
+ memcpy ( d->nrdn, BEI(e)->bei_nrdn.bv_val, strlen (BEI(e)->bei_nrdn.bv_val) + 1);
data.data = d;
rc = db->cursor( db, txn, &cursor, bdb->bi_db_opflags );